#1991 Add API key for llama.cpp

This commit is contained in:
Cohee
2024-03-31 00:27:12 +02:00
parent 4d0cef7516
commit a96bb40505
5 changed files with 35 additions and 33 deletions

View File

@ -22,6 +22,7 @@ export const SECRET_KEYS = {
OOBA: 'api_key_ooba',
NOMICAI: 'api_key_nomicai',
KOBOLDCPP: 'api_key_koboldcpp',
LLAMACPP: 'api_key_llamacpp',
};
const INPUT_MAP = {
@ -45,6 +46,7 @@ const INPUT_MAP = {
[SECRET_KEYS.DREAMGEN]: '#api_key_dreamgen',
[SECRET_KEYS.NOMICAI]: '#api_key_nomicai',
[SECRET_KEYS.KOBOLDCPP]: '#api_key_koboldcpp',
[SECRET_KEYS.LLAMACPP]: '#api_key_llamacpp',
};
async function clearSecret() {