Update OpenAI ChatGPT Turbo models (API) (#620)

Reference:
- https://platform.openai.com/docs/models/gpt-4
- https://openai.com/blog/new-embedding-models-and-api-updates
This commit is contained in:
Peter Dave Hello
2024-01-30 20:35:54 +08:00
committed by GitHub
parent b557aca8a6
commit ed09cb7cce
+13 -1
View File
@@ -36,11 +36,14 @@ export const chatgptApiModelKeys = [
'chatgptApi35',
'chatgptApi35_16k',
'chatgptApi35_1106',
'chatgptApi35_0125',
'chatgptApi4_8k',
'chatgptApi4_8k_0613',
'chatgptApi4_32k',
'chatgptApi4_32k_0613',
'chatgptApi4_128k_preview',
'chatgptApi4_128k_1106_preview',
'chatgptApi4_128k_0125_preview',
]
export const customApiModelKeys = ['customModel']
export const azureOpenAiApiModelKeys = ['azureOpenAi']
@@ -83,9 +86,17 @@ export const Models = {
chatgptApi4_8k: { value: 'gpt-4', desc: 'ChatGPT (GPT-4-8k)' },
chatgptApi4_32k: { value: 'gpt-4-32k', desc: 'ChatGPT (GPT-4-32k)' },
chatgptApi4_128k_preview: {
value: 'gpt-4-1106-preview',
value: 'gpt-4-turbo-preview',
desc: 'ChatGPT (GPT-4-Turbo 128k Preview)',
},
chatgptApi4_128k_1106_preview: {
value: 'gpt-4-1106-preview',
desc: 'ChatGPT (GPT-4-Turbo 128k 1106 Preview)',
},
chatgptApi4_128k_0125_preview: {
value: 'gpt-4-0125-preview',
desc: 'ChatGPT (GPT-4-Turbo 128k 0125 Preview)',
},
claude2WebFree: { value: 'claude-2.1', desc: 'Claude.ai (Web, Claude 2.1)' },
claude2Api: { value: '', desc: 'Claude.ai (API, Claude 2)' },
@@ -101,6 +112,7 @@ export const Models = {
chatgptPlus4Mobile: { value: 'gpt-4-mobile', desc: 'ChatGPT (Mobile, GPT-4)' },
chatgptApi35_1106: { value: 'gpt-3.5-turbo-1106', desc: 'ChatGPT (GPT-3.5-turbo 1106)' },
chatgptApi35_0125: { value: 'gpt-3.5-turbo-0125', desc: 'ChatGPT (GPT-3.5-turbo 0125)' },
chatgptApi4_8k_0613: { value: 'gpt-4', desc: 'ChatGPT (GPT-4-8k 0613)' },
chatgptApi4_32k_0613: { value: 'gpt-4-32k', desc: 'ChatGPT (GPT-4-32k 0613)' },