From c83024222ec8799f52a8063e4f4b1e93742cfacb Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Tue, 7 Nov 2023 02:50:23 +0800 Subject: [PATCH] Add OpenAI API GPT-4 Turbo Preview Reference: - https://platform.openai.com/docs/models/gpt-4-and-gpt-4-turbo - https://openai.com/blog/new-models-and-developer-products-announced-at-devday --- src/config/index.mjs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/config/index.mjs b/src/config/index.mjs index d677d043..d4d07f10 100644 --- a/src/config/index.mjs +++ b/src/config/index.mjs @@ -41,6 +41,7 @@ export const chatgptApiModelKeys = [ 'chatgptApi4_8k_0613', 'chatgptApi4_32k', 'chatgptApi4_32k_0613', + 'chatgptApi4_128k_preview', ] export const customApiModelKeys = ['customModel'] export const azureOpenAiApiModelKeys = ['azureOpenAi'] @@ -102,6 +103,7 @@ 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)' }, gptApiDavinci: { value: 'text-davinci-003', desc: 'GPT-3.5' }, customModel: { value: '', desc: 'Custom Model' }, azureOpenAi: { value: '', desc: 'ChatGPT (Azure)' },