diff --git a/src/components/ConfigMenu/ModelSelect.tsx b/src/components/ConfigMenu/ModelSelect.tsx index fa53a937..9298dd0b 100644 --- a/src/components/ConfigMenu/ModelSelect.tsx +++ b/src/components/ConfigMenu/ModelSelect.tsx @@ -42,6 +42,7 @@ export const ModelSelect = ({ switch (m) { case 'gpt-4': case 'gpt-4-32k': + case 'gpt-4-1106-preview': case 'gpt-3.5-turbo': case 'gpt-3.5-turbo-16k': case 'claude-2': diff --git a/src/constants/chat.ts b/src/constants/chat.ts index 6a5c6176..c451b544 100644 --- a/src/constants/chat.ts +++ b/src/constants/chat.ts @@ -20,6 +20,7 @@ Respond using Markdown.`; export const modelOptions: ModelChoice[] = [ 'gpt-3.5-turbo', 'gpt-3.5-turbo-16k', + 'gpt-4-1106-preview', 'gpt-4', 'gpt-4-32k', 'claude-2', @@ -40,6 +41,7 @@ export const modelMaxToken = { 'gpt-4': 8192, 'gpt-4-0314': 8192, 'gpt-4-0613': 8192, + 'gpt-4-1106-preview': 128000, 'gpt-4-32k': 32768, 'gpt-4-32k-0314': 32768, 'gpt-4-32k-0613': 32768, @@ -80,6 +82,10 @@ export const modelCost = { prompt: { price: 0.03, unit: 1000 }, completion: { price: 0.06, unit: 1000 }, }, + 'gpt-4-1106-preview': { + prompt: { price: 0.01, unit: 1000 }, + completion: { price: 0.03, unit: 1000 } + }, 'gpt-4-32k': { prompt: { price: 0.06, unit: 1000 }, completion: { price: 0.12, unit: 1000 }, diff --git a/src/types/chat.ts b/src/types/chat.ts index 79aac048..99db46f2 100644 --- a/src/types/chat.ts +++ b/src/types/chat.ts @@ -53,6 +53,7 @@ export interface Folder { export type ModelChoice = | 'gpt-4' | 'gpt-4-32k' + | 'gpt-4-1106-preview' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'claude-2'