add ChatGPT store option to settings and UI. see #406

This commit is contained in:
Mic 2025-06-09 20:47:00 +02:00
parent d2512a5ef7
commit df4e0bb139
3 changed files with 22 additions and 0 deletions

View file

@ -1539,5 +1539,13 @@
"apiwebchat_selection_info": { "apiwebchat_selection_info": {
"message": "If you select some text, only that portion will be considered.", "message": "If you select some text, only that portion will be considered.",
"description": "" "description": ""
},
"ChatGPT_StoreFlag": {
"message": "Use storage",
"description": ""
},
"ChatGPT_StoreFlag_info": {
"message": "If checked, your chats will be stored by OpenAI.",
"description": ""
} }
} }

View file

@ -30,6 +30,7 @@ export const prefs_default = {
chatgpt_web_project: '', chatgpt_web_project: '',
chatgpt_web_custom_gpt: '', chatgpt_web_custom_gpt: '',
chatgpt_api_key: '', chatgpt_api_key: '',
chatgpt_api_store: false,
chatgpt_model: '', chatgpt_model: '',
chatgpt_developer_messages: '', chatgpt_developer_messages: '',
ollama_host: '', ollama_host: '',

View file

@ -217,6 +217,19 @@
</label> </label>
</td> </td>
</tr> </tr>
<tr class="conntype_chatgpt_api">
<td>
<label>
<span class="opt_title">__MSG_ChatGPT_StoreFlag__</span>
</label>
</td>
<td>
<label>
<input type="checkbox" id="chatgpt_api_store" name="chatgpt_api_store" class="option-input" />
&nbsp;<span>__MSG_ChatGPT_StoreFlag_info__</span>
</label>
</td>
</tr>
<tr class="conntype_chatgpt_api"> <tr class="conntype_chatgpt_api">
<td> <td>
<label> <label>