Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to GPT-4o #230

Merged
merged 1 commit into from
Jun 27, 2024
Merged
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
4 changes: 3 additions & 1 deletion slang_gpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,10 @@ dart run slang_gpt --target=fr --api-key=<api-key>
| Model name | Provider | Context length | Cost per 1k input token | Cost per input word (English) |
|---------------------|----------|----------------|-------------------------|-------------------------------|
| `gpt-3.5-turbo` | Open AI | 4096 | $0.0015 | $0.000001125 |
| `gpt-3.5-turbo-16k` | Open AI | 16384 | $0.003 | $0.00000225 |
| `gpt-3.5-turbo-16k` | Open AI | 16384 | $0.003 | $0.00000225 |
| `gpt-4` | Open AI | 8192 | $0.03 | $0.0000225 |
| `gpt-4-turbo` | Open AI | 64000 | $0.01 | $0.00001 |
| `gpt-4o` | Open AI | 128000 | $0.005 | $0.000005 |

## GPT context length

Expand Down
4 changes: 4 additions & 0 deletions slang_gpt/lib/model/gpt_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ enum GptModel {
defaultInputLength: 64000,
costPerInputToken: 0.00001,
costPerOutputToken: 0.00002),
gpt4o('gpt-4o', GptProvider.openai,
defaultInputLength: 128000,
costPerInputToken: 0.000005,
costPerOutputToken: 0.000015),
;

const GptModel(
Expand Down