chore: add grok-4 and fix openai models

Kujtim Hoxha created

Change summary

internal/providers/configs/openai.json |  4 ++--
internal/providers/configs/xai.json    | 14 ++++++++++++++
2 files changed, 16 insertions(+), 2 deletions(-)

Detailed changes

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

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",