From a2a5669b784cb566dc96db687eb51ac18645cfdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cem=20Avc=C4=B1?= <101732768+cem256@users.noreply.github.com> Date: Mon, 29 Jul 2024 13:11:06 +0300 Subject: [PATCH] Add suport to GPT-4o mini #235 (#236) --- slang_gpt/README.md | 1 + slang_gpt/lib/model/gpt_model.dart | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/slang_gpt/README.md b/slang_gpt/README.md index a3f68bb1..2233de23 100644 --- a/slang_gpt/README.md +++ b/slang_gpt/README.md @@ -78,6 +78,7 @@ dart run slang_gpt --target=fr --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) diff --git a/slang_gpt/lib/model/gpt_model.dart b/slang_gpt/lib/model/gpt_model.dart index 5f321fb4..fea03848 100644 --- a/slang_gpt/lib/model/gpt_model.dart +++ b/slang_gpt/lib/model/gpt_model.dart @@ -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(