Merge branch 'main' into v3.2.0

This commit is contained in:
Mic 2025-02-27 21:18:10 +01:00 committed by GitHub
commit f4551c3662
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 23 additions and 10 deletions

View file

@ -17,6 +17,11 @@
<li>Translations improved thanks to Hosted Weblate. <a href="https://micz.it/thunderbird-addon-thunderai/translate/">Help translating ThunderAI!</a>.</li>
<li>Various minor improvements.</li>
</ul>
<h2>Version 3.1.3 - 02/02/2025</h2>
<ul>
<li><i>[ChatGPT Web]</i> Correctly hiding the "Download Sparks" message when using [<a href="https://github.com/micz/ThunderAI/issues/245">#245</a>].</li>
<li><i>[ChatGPT Web]</i> Added support to autochoose the new <i>o1</i>, <i>o3-mini</i> and <i>o3-mini-high</i> models [<a href="https://github.com/micz/ThunderAI/issues/244">#244</a>].</li>
</ul>
<h2>Version 3.1.2 - 29/01/2025</h2>
<ul>
<li>Forcing ThunderAI menu reload when installing Sparks [<a href="https://github.com/micz/ThunderAI/issues/240">#240</a>].</li>

View file

@ -138,18 +138,21 @@ export function sanitizeHtml(input) {
export function getGPTWebModelString(model) {
model = model.toLowerCase().trim();
switch (model) {
case 'GTP-4o':
case 'GPT-4o':
case 'gpt-4o':
return '4o';
case 'o1-preview':
return 'o1-preview';
case 'o1-mini':
return 'o1-mini';
case 'gpt-4':
return '4';
case 'gpt-4o-mini':
return '4o mini';
case 'gpt-4':
return 'gpt-4';
case 'o1':
return 'o1';
case 'o3-mini':
return 'o3-mini';
case 'o3-mini-high':
return 'o3-mini-high';
default:
return '';
return model;
}
}

View file

@ -120,7 +120,7 @@
<tr class="conntype_chatgpt_web">
<td><label>
<span>__MSG_prefs_OptionText_chatgpt_web_model__</span>
<br><table title="__MSG_prefs_OptionText_chatgpt_web_model_tooltip__"><tr><td><i class="small_info"><nobr>__MSG_AllowedValues__:</nobr></i></td><td><i class="small_info"> &nbsp; <nobr class="conntype_chatgpt_web_option">gpt-4o</nobr> &nbsp; <nobr class="conntype_chatgpt_web_option">gpt-4o-mini</nobr> &nbsp; <nobr class="conntype_chatgpt_web_option">gpt-4</nobr> &nbsp; <nobr class="conntype_chatgpt_web_option">o1-mini</nobr> &nbsp; <nobr class="conntype_chatgpt_web_option">o1-preview</nobr></i></td></tr></table>
<br><table title="__MSG_prefs_OptionText_chatgpt_web_model_tooltip__"><tr><td><i class="small_info"><nobr>__MSG_AllowedValues__:</nobr></i></td><td><i class="small_info"> &nbsp; <nobr class="conntype_chatgpt_web_option">gpt-4o</nobr> &nbsp; <nobr class="conntype_chatgpt_web_option">gpt-4o-mini</nobr> &nbsp; <nobr class="conntype_chatgpt_web_option">gpt-4</nobr> &nbsp; <nobr class="conntype_chatgpt_web_option">o1</nobr> &nbsp; <nobr class="conntype_chatgpt_web_option">o3-mini</nobr> &nbsp; <nobr class="conntype_chatgpt_web_option">o3-mini-high</nobr></i></td></tr></table>
</label></td>
<td>
<label>

View file

@ -272,7 +272,7 @@ async function disable_GetCalendarEvent(){
get_calendar_event_tr_elements.forEach(get_calendar_event_tr => {
get_calendar_event_tr.style.display = get_calendar_event.disabled ? 'none' : 'table-row';
});
no_sparks_tr.style.display = is_spark_present ? 'none' : 'table-row';
no_sparks_tr.style.display = (is_spark_present || (conntype_select.value === "chatgpt_web")) ? 'none' : 'table-row';
}
document.addEventListener('DOMContentLoaded', async () => {

View file

@ -19,6 +19,11 @@
<li>Translations improved thanks to Hosted Weblate. <a href="https://micz.it/thunderbird-addon-thunderai/translate/">Help translating ThunderAI!</a>.</li>
<li>Various minor improvements.</li>
</ul>
<h2>Version 3.1.3 - 02/02/2025</h2>
<ul>
<li><i>[ChatGPT Web]</i> Correctly hiding the "Download Sparks" message when using [<a href="https://github.com/micz/ThunderAI/issues/245">#245</a>].</li>
<li><i>[ChatGPT Web]</i> Added support to autochoose the new <i>o1</i>, <i>o3-mini</i> and <i>o3-mini-high</i> models [<a href="https://github.com/micz/ThunderAI/issues/244">#244</a>].</li>
</ul>
<h2>Version 3.1.2 - 29/01/2025</h2>
<ul>
<li>Forcing ThunderAI menu reload when installing Sparks [<a href="https://github.com/micz/ThunderAI/issues/240">#240</a>].</li>