Skip to content

Commit

Permalink
Update chat.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AthanaD authored Jan 1, 2024
1 parent 3e685a8 commit 1422489
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/constants/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const modelOptions: ModelOptions[] = [
'gpt-3.5-turbo-1106',
'gpt-4',
'gpt-4-32k',
'gpt-4-mobile',

Check failure on line 26 in src/constants/chat.ts

View workflow job for this annotation

GitHub Actions / build

Type '"gpt-4-mobile"' is not assignable to type 'ModelOptions'.
'gpt-4-1106-preview'
// 'gpt-3.5-turbo-0301',
// 'gpt-4-0314',
Expand All @@ -41,6 +42,7 @@ export const modelMaxToken = {
'gpt-4': 8192,
'gpt-4-0314': 8192,
'gpt-4-0613': 8192,
'gpt-4-mobile': 8192,
'gpt-4-32k': 32768,
'gpt-4-32k-0314': 32768,
'gpt-4-32k-0613': 32768,
Expand Down Expand Up @@ -84,6 +86,10 @@ export const modelCost = {
prompt: { price: 0.03, unit: 1000 },
completion: { price: 0.06, unit: 1000 },
},
'gpt-4-mobile': {
prompt: { price: 0.03, unit: 1000 },
completion: { price: 0.06, unit: 1000 },
},
'gpt-4-32k': {
prompt: { price: 0.06, unit: 1000 },
completion: { price: 0.12, unit: 1000 },
Expand Down

0 comments on commit 1422489

Please sign in to comment.