Skip to content

Commit

Permalink
Add gpt-4 turbo preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Danil Yarantsev (Yardanico) committed Nov 6, 2023
1 parent 8fd9b14 commit c780dea
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/ConfigMenu/ModelSelect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down
6 changes: 6 additions & 0 deletions src/constants/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand Down Expand Up @@ -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 },
Expand Down
1 change: 1 addition & 0 deletions src/types/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit c780dea

Please sign in to comment.