From 97d52fa0eec68f9968766793b9fd2fe934fc1211 Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 7 Jan 2025 21:14:42 +0100 Subject: [PATCH] chatgpt_developer_messages option added. see #218 --- _locales/en/messages.json | 8 ++++++++ options/mzta-options-default.js | 1 + options/mzta-options.css | 2 +- options/mzta-options.html | 15 ++++++++++++++- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index d59ac3a1..405791b3 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -938,5 +938,13 @@ "GoogleGemini_SystemInstruction_Info": { "message": "When you set a system instruction, you give the model additional context to understand the task, provide more customized responses, and adhere to specific guidelines over the prompt that will be sent.", "description": "" + }, + "ChatGPT_Developer_Messages": { + "message": "Developer Messages", + "description": "" + }, + "ChatGPT_Developer_Messages_Info": { + "message": "When you set the developer messages, you give the model additional context to understand the task, provide more customized responses, and adhere to specific guidelines over the prompt that will be sent.", + "description": "" } } \ No newline at end of file diff --git a/options/mzta-options-default.js b/options/mzta-options-default.js index 003f42c6..7a2315bb 100644 --- a/options/mzta-options-default.js +++ b/options/mzta-options-default.js @@ -26,6 +26,7 @@ export const prefs_default = { chatgpt_web_tempchat: false, chatgpt_api_key: '', chatgpt_model: '', + chatgpt_developer_messages: '', ollama_host: '', ollama_model: '', openai_comp_host: '', // For OpenAI Compatible API as LM-Studio diff --git a/options/mzta-options.css b/options/mzta-options.css index 63617562..e3680a08 100644 --- a/options/mzta-options.css +++ b/options/mzta-options.css @@ -118,7 +118,7 @@ tr.conntype_google_gemini_api, tr.conntype_google_gemini_api2{ font-style: italic; } -#google_gemini_system_instruction{ +textarea.option-textarea{ width: -moz-available; height: 10em; } diff --git a/options/mzta-options.html b/options/mzta-options.html index 3c505881..76e99676 100644 --- a/options/mzta-options.html +++ b/options/mzta-options.html @@ -175,6 +175,19 @@ + + + + + + + +