allow filling in the API Key of CustomModel mode (#561, previously designed for local offline model or custom server, now you can also use it for regular openai API calls and freely fill in the model name(#563))

This commit is contained in:
josc146
2023-11-13 13:42:46 +08:00
parent 946cadc51d
commit d0fbc9fecb
4 changed files with 29 additions and 6 deletions
+9 -3
View File
@@ -98,7 +98,10 @@ export const Models = {
chatgptApi4_8k_0613: { value: 'gpt-4', desc: 'ChatGPT (GPT-4-8k 0613)' },
chatgptApi4_32k: { value: 'gpt-4-32k', desc: 'ChatGPT (GPT-4-32k)' },
chatgptApi4_32k_0613: { value: 'gpt-4-32k', desc: 'ChatGPT (GPT-4-32k 0613)' },
chatgptApi4_128k_preview: { value: 'gpt-4-1106-preview', desc: 'ChatGPT (GPT-4-Turbo 128k Preview)' },
chatgptApi4_128k_preview: {
value: 'gpt-4-1106-preview',
desc: 'ChatGPT (GPT-4-Turbo 128k Preview)',
},
gptApiDavinci: { value: 'text-davinci-003', desc: 'GPT-3.5' },
customModel: { value: '', desc: 'Custom Model' },
azureOpenAi: { value: '', desc: 'ChatGPT (Azure)' },
@@ -149,11 +152,14 @@ export const defaultConfig = {
poeCustomBotName: '',
claudeApiKey: '',
customApiKey: '',
/** @type {keyof ModelMode}*/
modelMode: 'balanced',
customModelApiUrl: 'http://localhost:8000/chat/completions',
customModelName: 'rwkv',
customModelApiUrl: 'http://localhost:8000/v1/chat/completions',
customModelName: 'gpt-3.5-turbo',
githubThirdPartyUrl: 'http://127.0.0.1:3000/conversation',
// advanced