Add NanoGPT as chat completions provider

This commit is contained in:
dylan
2024-10-26 16:42:09 +13:00
parent 21c4ac7abf
commit 0882fb2d15
5 changed files with 106 additions and 0 deletions

View File

@ -34,6 +34,7 @@ export const SECRET_KEYS = {
STABILITY: 'api_key_stability',
BLOCKENTROPY: 'api_key_blockentropy',
CUSTOM_OPENAI_TTS: 'api_key_custom_openai_tts',
NANOGPT: 'api_key_nanogpt',
TAVILY: 'api_key_tavily',
};
@ -67,6 +68,7 @@ const INPUT_MAP = {
[SECRET_KEYS.ZEROONEAI]: '#api_key_01ai',
[SECRET_KEYS.HUGGINGFACE]: '#api_key_huggingface',
[SECRET_KEYS.BLOCKENTROPY]: '#api_key_blockentropy',
[SECRET_KEYS.NANOGPT]: '#api_key_nanogpt',
};
async function clearSecret() {