chatgpt_developer_messages option added. see #218

This commit is contained in:
mic 2025-01-07 21:14:42 +01:00
parent 46a611da63
commit 97d52fa0ee
4 changed files with 24 additions and 2 deletions

View file

@ -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": ""
}
}

View file

@ -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

View file

@ -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;
}

View file

@ -175,6 +175,19 @@
</label>
</td>
</tr>
<tr class="conntype_chatgpt_api">
<td>
<label>
<span>__MSG_ChatGPT_Developer_Messages__</span>
</label>
</td>
<td>
<label>
<textarea id="chatgpt_developer_messages" name="chatgpt_developer_messages" class="option-input option-textarea"></textarea>
<br>__MSG_ChatGPT_Developer_Messages_Info__
</label>
</td>
</tr>
<tr class="conntype_google_gemini_api">
<td><label>
<span>__MSG_prefs_GoogleGemini_API_Key__</span>
@ -210,7 +223,7 @@
</td>
<td>
<label>
<textarea id="google_gemini_system_instruction" name="google_gemini_system_instruction" class="option-input"></textarea>
<textarea id="google_gemini_system_instruction" name="google_gemini_system_instruction" class="option-input option-textarea"></textarea>
<br>__MSG_GoogleGemini_SystemInstruction_Info__
</label>
</td>