Add ChatGPTWeb_models export to mzta-utils.js and update imports in mzta-options.js
This commit is contained in:
parent
ca8e62aac4
commit
1d798c4a8c
2 changed files with 2 additions and 3 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const sparks_min = '1.2.0'; // Minimum version of ThunderAI-Sparks required for the add-on to work
|
const sparks_min = '1.2.0'; // Minimum version of ThunderAI-Sparks required for the add-on to work
|
||||||
|
export const ChatGPTWeb_models = ['gpt-4o', 'o3', 'o4-mini', 'o4-mini-high', 'gpt-4o-mini']; // List of models available in ChatGPT Web
|
||||||
|
|
||||||
export const getMenuContextCompose = () => 'compose_action_menu';
|
export const getMenuContextCompose = () => 'compose_action_menu';
|
||||||
export const getMenuContextDisplay = () => 'message_display_action_menu';
|
export const getMenuContextDisplay = () => 'message_display_action_menu';
|
||||||
|
|
|
||||||
|
|
@ -22,14 +22,12 @@ import { OpenAI } from '../js/api/openai.js';
|
||||||
import { Ollama } from '../js/api/ollama.js';
|
import { Ollama } from '../js/api/ollama.js';
|
||||||
import { OpenAIComp } from '../js/api/openai_comp.js'
|
import { OpenAIComp } from '../js/api/openai_comp.js'
|
||||||
import { GoogleGemini } from '../js/api/google_gemini.js';
|
import { GoogleGemini } from '../js/api/google_gemini.js';
|
||||||
import { checkSparksPresence, isThunderbird128OrGreater, openTab, sanitizeChatGPTModelData, sanitizeChatGPTWebCustomData, validateCustomData_ChatGPTWeb, getChatGPTWebModelsList_HTML } from '../js/mzta-utils.js';
|
import { ChatGPTWeb_models, checkSparksPresence, isThunderbird128OrGreater, openTab, sanitizeChatGPTModelData, sanitizeChatGPTWebCustomData, validateCustomData_ChatGPTWeb, getChatGPTWebModelsList_HTML } from '../js/mzta-utils.js';
|
||||||
|
|
||||||
let taLog = new taLogger("mzta-options",true);
|
let taLog = new taLogger("mzta-options",true);
|
||||||
let _isThunderbird128OrGreater = true;
|
let _isThunderbird128OrGreater = true;
|
||||||
let permission_all_urls = false;
|
let permission_all_urls = false;
|
||||||
|
|
||||||
const ChatGPTWeb_models = ['gpt-4o', 'o3', 'o4-mini', 'o4-mini-high', 'gpt-4o-mini'];
|
|
||||||
|
|
||||||
function saveOptions(e) {
|
function saveOptions(e) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let options = {};
|
let options = {};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue