Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/constants/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ export const modelOptions: ModelOptions[] = [
'gpt-3.5-turbo-0125',
'gpt-4',
'gpt-4-32k',
'gpt-4-turbo',
'gpt-4-turbo-preview',
'gpt-4-1106-preview',
'gpt-4-0125-preview'
// 'gpt-3.5-turbo-0301',
Expand All @@ -47,6 +49,8 @@ export const modelMaxToken = {
'gpt-4-32k': 32768,
'gpt-4-32k-0314': 32768,
'gpt-4-32k-0613': 32768,
'gpt-4-turbo': 128000,
'gpt-4-turbo-preview': 128000,
'gpt-4-1106-preview': 128000,
'gpt-4-0125-preview': 128000,
};
Expand Down Expand Up @@ -84,6 +88,14 @@ export const modelCost = {
prompt: { price: 0.03, unit: 1000 },
completion: { price: 0.06, unit: 1000 },
},
'gpt-4-turbo': {
prompt: { price: 10.00, unit: 1000000 },
completion: { price: 30.00, unit: 1000000 },
},
'gpt-4-turbo-preview': {
prompt: { price: 10.00, unit: 1000000 },
completion: { price: 30.00, unit: 1000000 },
},
'gpt-4-0314': {
prompt: { price: 0.03, unit: 1000 },
completion: { price: 0.06, unit: 1000 },
Expand Down
2 changes: 2 additions & 0 deletions src/types/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export type ModelOptions =
| 'gpt-4-32k'
| 'gpt-4-1106-preview'
| 'gpt-4-0125-preview'
| 'gpt-4-turbo'
| 'gpt-4-turbo-preview'
| 'gpt-3.5-turbo'
| 'gpt-3.5-turbo-16k'
| 'gpt-3.5-turbo-1106'
Expand Down