Skip to content

Commit

Permalink
Add gpt-4o (#585)
Browse files Browse the repository at this point in the history
* Add gpt-4o to chat.ts

* Add gpt-4o to chat.ts
  • Loading branch information
quasimik authored and AI-Maria committed May 30, 2024
1 parent 85734d0 commit a45297e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/constants/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@ export const modelTypes: ModelTypes = {
prompt: { price: 0.01, unit: 1000 },
completion: { price: 0.03, unit: 1000 },
},
'gpt-4o': {
prompt: { price: 0.005, unit: 1000 },
completion: { price: 0.015, unit: 1000 },
},
'gpt-4o-2024-05-13': {
prompt: { price: 0.005, unit: 1000 },
completion: { price: 0.015, unit: 1000 },
},
};

export const defaultUserMaxToken = 4000;
Expand Down
2 changes: 2 additions & 0 deletions src/types/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ export interface Folder {
}

export type ModelOptions =
| 'gpt-4o'
| 'gpt-4o-2024-05-13'
| 'gpt-4'
| 'gpt-4-32k'
| 'gpt-4-1106-preview'
Expand Down

0 comments on commit a45297e

Please sign in to comment.