From c579bb0c6713c81576354d43f02d2b8cf7691861 Mon Sep 17 00:00:00 2001 From: Kujtim Hoxha Date: Thu, 10 Jul 2025 11:24:25 +0200 Subject: [PATCH] chore: add grok-4 and fix openai models --- internal/providers/configs/openai.json | 4 ++-- internal/providers/configs/xai.json | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/internal/providers/configs/openai.json b/internal/providers/configs/openai.json index c29c42fd625bc363f8c05e9b64650d41bccf8445..570a93f7be5feed61658dfd0f18d217b6a1e99dc 100644 --- a/internal/providers/configs/openai.json +++ b/internal/providers/configs/openai.json @@ -119,7 +119,7 @@ "cost_per_1m_in_cached": 0, "cost_per_1m_out_cached": 1.25, "context_window": 128000, - "default_max_tokens": 20000, + "default_max_tokens": 15000, "can_reason": false, "supports_attachments": true }, @@ -131,7 +131,7 @@ "cost_per_1m_in_cached": 0, "cost_per_1m_out_cached": 0.075, "context_window": 128000, - "default_max_tokens": 20000, + "default_max_tokens": 14000, "can_reason": false, "reasoning_effort": "", "supports_attachments": true diff --git a/internal/providers/configs/xai.json b/internal/providers/configs/xai.json index 366a2988f3f526d9f3b89358ac0d493fe7b3c4e4..5cfadf9012f62c821142173a9a7e8d3fb52e86e3 100644 --- a/internal/providers/configs/xai.json +++ b/internal/providers/configs/xai.json @@ -7,6 +7,20 @@ "default_large_model_id": "grok-3", "default_small_model_id": "grok-3-mini", "models": [ + { + "id": "grok-4", + "model": "Grok 4", + "cost_per_1m_in": 3, + "cost_per_1m_out": 15, + "cost_per_1m_in_cached": 0, + "cost_per_1m_out_cached": 0.75, + "context_window": 256000, + "default_max_tokens": 20000, + "can_reason": true, + "has_reasoning_effort": true, + "default_reasoning_effort": "medium", + "supports_attachments": true + }, { "id": "grok-3-mini", "model": "Grok 3 Mini",