Add 01.AI as a chat completion source

This commit is contained in:
Cohee
2024-06-28 00:51:09 +03:00
parent 537cfbc027
commit cf56bfb6a9
11 changed files with 183 additions and 5 deletions

View File

@ -28,6 +28,7 @@ export const SECRET_KEYS = {
PERPLEXITY: 'api_key_perplexity',
GROQ: 'api_key_groq',
AZURE_TTS: 'api_key_azure_tts',
ZEROONEAI: 'api_key_01ai',
};
const INPUT_MAP = {
@ -56,6 +57,7 @@ const INPUT_MAP = {
[SECRET_KEYS.COHERE]: '#api_key_cohere',
[SECRET_KEYS.PERPLEXITY]: '#api_key_perplexity',
[SECRET_KEYS.GROQ]: '#api_key_groq',
[SECRET_KEYS.ZEROONEAI]: '#api_key_01ai',
};
async function clearSecret() {