Skip to content

Commit

Permalink
Add support to GPT-4o #229 (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
cem256 authored Jun 27, 2024
1 parent 8eb87b0 commit cdc609d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
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

0 comments on commit cdc609d

Please sign in to comment.