mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add NomicAI for vectorization (#1922)
* Crudely add NomicAi for vectorization * Move NomicAI to its own endpoint, properly handle API key * Adjust clear button html * Remove leftover nomicai http header code * Revert changes to openai-vectors.js * Fix UI issues * Revert change to settings, fix UI --------- Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
700c20d441
commit
44a7dd3d74
@ -20,6 +20,7 @@ export const SECRET_KEYS = {
|
||||
DREAMGEN: 'api_key_dreamgen',
|
||||
CUSTOM: 'api_key_custom',
|
||||
OOBA: 'api_key_ooba',
|
||||
NOMICAI: 'api_key_nomicai',
|
||||
};
|
||||
|
||||
const INPUT_MAP = {
|
||||
@ -41,6 +42,7 @@ const INPUT_MAP = {
|
||||
[SECRET_KEYS.OOBA]: '#api_key_ooba',
|
||||
[SECRET_KEYS.INFERMATICAI]: '#api_key_infermaticai',
|
||||
[SECRET_KEYS.DREAMGEN]: '#api_key_dreamgen',
|
||||
[SECRET_KEYS.NOMICAI]: '#api_key_nomicai',
|
||||
};
|
||||
|
||||
async function clearSecret() {
|
||||
@ -48,7 +50,7 @@ async function clearSecret() {
|
||||
await writeSecret(key, '');
|
||||
secret_state[key] = false;
|
||||
updateSecretDisplay();
|
||||
$(INPUT_MAP[key]).val('');
|
||||
$(INPUT_MAP[key]).val('').trigger('input');
|
||||
$('#main_api').trigger('change');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user