From 819eb161d007c25a0b41746b4128ae39aa99f565 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Tue, 25 Jul 2023 21:56:30 +0800 Subject: [PATCH] Add OpenAI API 0613 version for all models, close #474 (#478) References: - https://platform.openai.com/docs/models/gpt-4 - https://platform.openai.com/docs/models/gpt-3-5 - https://openai.com/blog/function-calling-and-other-api-updates --- src/config/index.mjs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/config/index.mjs b/src/config/index.mjs index 9768f741..035e4105 100644 --- a/src/config/index.mjs +++ b/src/config/index.mjs @@ -35,8 +35,11 @@ export const chatgptApiModelKeys = [ 'chatgptApi35', 'chatgptApi35_16k', 'chatgptApi35_0613', + 'chatgptApi35_16k_0613', 'chatgptApi4_8k', + 'chatgptApi4_8k_0613', 'chatgptApi4_32k', + 'chatgptApi4_32k_0613', ] export const customApiModelKeys = ['customModel'] export const azureOpenAiApiModelKeys = ['azureOpenAi'] @@ -71,6 +74,10 @@ export const Models = { chatgptApi35: { value: 'gpt-3.5-turbo', desc: 'ChatGPT (GPT-3.5-turbo)' }, chatgptApi35_16k: { value: 'gpt-3.5-turbo-16k', desc: 'ChatGPT (GPT-3.5-turbo-16k)' }, chatgptApi35_0613: { value: 'gpt-3.5-turbo-0613', desc: 'ChatGPT (GPT-3.5-turbo 0613)' }, + chatgptApi35_16k_0613: { + value: 'gpt-3.5-turbo-16k-0613', + desc: 'ChatGPT (GPT-3.5-turbo-16k 0613)', + }, bingFree4: { value: '', desc: 'Bing (Web, GPT-4)' }, bingFreeSydney: { value: '', desc: 'Bing (Web, GPT-4, Sydney)' }, bardWebFree: { value: '', desc: 'Bard (Web)' }, @@ -82,7 +89,9 @@ export const Models = { poeAiWebClaude100k: { value: 'claude-instant-100k', desc: 'Poe AI (Web, Claude instant 100k)' }, poeAiWebGooglePaLM: { value: 'Google-PaLM', desc: 'Poe AI (Web, Google-PaLM)' }, chatgptApi4_8k: { value: 'gpt-4', desc: 'ChatGPT (GPT-4-8k)' }, + 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)' }, gptApiDavinci: { value: 'text-davinci-003', desc: 'GPT-3.5' }, customModel: { value: '', desc: 'Custom Model' }, azureOpenAi: { value: '', desc: 'ChatGPT (Azure)' },