Skip to content

Commit

Permalink
Add suport to GPT-4o mini #235 (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
cem256 authored Jul 29, 2024
1 parent 8633d2b commit a2a5669
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions slang_gpt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ dart run slang_gpt --target=fr --api-key=<api-key>
| `gpt-4` | Open AI | 8192 | $0.03 | $0.06 |
| `gpt-4-turbo` | Open AI | 64000 | $0.01 | $0.03 |
| `gpt-4o` | Open AI | 128000 | $0.005 | $0.015 |
| `gpt-4o-mini` | Open AI | 128000 | $0.00015 | $0.0006 |

1k tokens = 750 words (English)

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 @@ -24,6 +24,10 @@ enum GptModel {
defaultInputLength: 128000,
costPer1kInputToken: 0.005,
costPer1kOutputToken: 0.015),
gpt4o_mini('gpt-4o-mini', GptProvider.openai,
defaultInputLength: 128000,
costPer1kInputToken: 0.00015,
costPer1kOutputToken: 0.0006),
;

const GptModel(
Expand Down

0 comments on commit a2a5669

Please sign in to comment.