managing chatgpt apikey in the options

This commit is contained in:
mic 2024-07-21 15:00:40 +02:00
parent 6b5f16dc91
commit 4a215d8961
2 changed files with 12 additions and 1 deletions

View file

@ -23,5 +23,5 @@ export const prefs_default = {
chatgpt_keep_formatting: false,
default_chatgpt_lang: '',
api_active: false,
api_key: '',
api_key_chatgpt: '',
}

View file

@ -92,6 +92,17 @@
</label>
</td>
</tr>
<tr>
<td><label>
<span>API Key</span>
</label></td>
<td>
<label>
<input type="text" id="api_key_chatgpt" name="api_key_chatgpt" class="option-input" />
&nbsp;<span>Use that OpenAI API!</span>
</label>
</td>
</tr>
</table>
<div id="btn_custom_prompts">
<button id="btnManagePrompts">__MSG_prefs_OptionText_btnManagePrompts__</button>