openai_comp_chat_name option added to options page

This commit is contained in:
mic 2024-09-12 21:51:45 +02:00
parent cb942eb03c
commit 9218cb0679
3 changed files with 21 additions and 0 deletions

View file

@ -534,5 +534,13 @@
"OpenAIComp_api_request_failed": {
"message": "OpenAI Comp API request failed",
"description": ""
},
"prefs_OpenAIComp_ChatName": {
"message": "Chat Name",
"description": ""
},
"prefs_OpenAIComp_ChatName_Info": {
"message": "This is the name that will be used in the AI chat.",
"description": ""
}
}

View file

@ -29,4 +29,5 @@ export const prefs_default = {
ollama_model: '',
openai_comp_host: '', // For OpenAI Compatible API as LM-Studio
openai_comp_model: '',
openai_comp_chat_name: 'OpenAI Comp',
}

View file

@ -165,6 +165,18 @@
</label>
</td>
</tr>
<tr class="conntype_openai_comp_api">
<td><label>
<span>__MSG_prefs_OpenAIComp_ChatName__</span>
</label></td>
<td>
<label>
<input type="text" id="openai_comp_chat_name" name="openai_comp_chat_name" class="option-input" style="width:14em" />
<br>__MSG_prefs_OpenAIComp_ChatName_Info__
&nbsp;<span></span>
</label>
</td>
</tr>
<tr>
<td><label>
<span>__MSG_Debug__</span>