Add Ollama context token preferences to options and UI. see #351
This commit is contained in:
parent
fc7854bb69
commit
16d374046e
3 changed files with 20 additions and 0 deletions
|
|
@ -1274,5 +1274,13 @@
|
||||||
"Replace_No_Selected_Text": {
|
"Replace_No_Selected_Text": {
|
||||||
"message": "No text selected, would you like to insert the AI's response at the beginning of the email?",
|
"message": "No text selected, would you like to insert the AI's response at the beginning of the email?",
|
||||||
"description": ""
|
"description": ""
|
||||||
|
},
|
||||||
|
"prefs_ollama_num_ctx": {
|
||||||
|
"message": "Number of context tokens",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"prefs_ollama_num_ctx_Info": {
|
||||||
|
"message": "The number of context tokens to use for the Ollama API. Set to 0 if you don't want to pass it as a parameter to the server.",
|
||||||
|
"description": ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -30,6 +30,7 @@ export const prefs_default = {
|
||||||
chatgpt_developer_messages: '',
|
chatgpt_developer_messages: '',
|
||||||
ollama_host: '',
|
ollama_host: '',
|
||||||
ollama_model: '',
|
ollama_model: '',
|
||||||
|
ollama_num_ctx: 0,
|
||||||
openai_comp_host: '', // For OpenAI Compatible API as LM-Studio
|
openai_comp_host: '', // For OpenAI Compatible API as LM-Studio
|
||||||
openai_comp_model: '',
|
openai_comp_model: '',
|
||||||
openai_comp_api_key: '',
|
openai_comp_api_key: '',
|
||||||
|
|
|
||||||
|
|
@ -250,6 +250,17 @@
|
||||||
<br><br><button id="btnGiveAllUrlsPermission_ollama_api">__MSG_CORS_give_allurls_perm__</button>
|
<br><br><button id="btnGiveAllUrlsPermission_ollama_api">__MSG_CORS_give_allurls_perm__</button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr class="conntype_ollama_api">
|
||||||
|
<td><label>
|
||||||
|
<span>__MSG_prefs_ollama_num_ctx__</span>
|
||||||
|
</label></td>
|
||||||
|
<td>
|
||||||
|
<label>
|
||||||
|
<input type="number" id="ollama_num_ctx" name="ollama_num_ctx" class="option-input"/>
|
||||||
|
<br>__MSG_prefs_ollama_num_ctx_Info__
|
||||||
|
</label>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr class="conntype_ollama_api">
|
<tr class="conntype_ollama_api">
|
||||||
<td>
|
<td>
|
||||||
<label>
|
<label>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue