From a7378175f71db77d66ac2c5dd02701bea9ff9075 Mon Sep 17 00:00:00 2001 From: "kiloconnect[bot]" <240665456+kiloconnect[bot]@users.noreply.github.com> Date: Tue, 17 Feb 2026 21:15:26 +0000 Subject: [PATCH] Disable Grok Code Fast 1 Optimized free model Set is_enabled to false for grok_code_fast_1_optimized_free_model and remove the model from the approved test snapshot. --- src/lib/providers/xai.ts | 2 +- .../openrouter-models-sorting.approved.json | 44 ------------------- 2 files changed, 1 insertion(+), 45 deletions(-) diff --git a/src/lib/providers/xai.ts b/src/lib/providers/xai.ts index 59f736fa4..8fec81163 100644 --- a/src/lib/providers/xai.ts +++ b/src/lib/providers/xai.ts @@ -13,7 +13,7 @@ export const grok_code_fast_1_optimized_free_model = { 'An optimized variant of Grok Code Fast 1, provided free of charge for a limited time. **Note:** All prompts and completions for this model are logged by the provider and may be used to improve their services.', context_length: 256_000, max_completion_tokens: 10_000, - is_enabled: true, + is_enabled: false, flags: ['reasoning', 'prompt_cache'], gateway: 'martian', internal_id: 'x-ai/grok-code-fast-1:optimized', diff --git a/src/tests/openrouter-models-sorting.approved.json b/src/tests/openrouter-models-sorting.approved.json index 2a1e6bc66..be57109e8 100644 --- a/src/tests/openrouter-models-sorting.approved.json +++ b/src/tests/openrouter-models-sorting.approved.json @@ -202,50 +202,6 @@ } } }, - { - "id": "x-ai/grok-code-fast-1:optimized:free", - "canonical_slug": "x-ai/grok-code-fast-1:optimized:free", - "hugging_face_id": "", - "name": "xAI: Grok Code Fast 1 Optimized (free)", - "created": 1756238927, - "description": "An optimized variant of Grok Code Fast 1, provided free of charge for a limited time. **Note:** All prompts and completions for this model are logged by the provider and may be used to improve their services.", - "context_length": 256000, - "architecture": { - "modality": "text->text", - "input_modalities": [ - "text" - ], - "output_modalities": [ - "text" - ], - "tokenizer": "Other", - "instruct_type": null - }, - "pricing": { - "prompt": "0.0000000", - "completion": "0.0000000", - "request": "0", - "image": "0", - "web_search": "0", - "internal_reasoning": "0", - "input_cache_read": "0.00000000" - }, - "top_provider": { - "context_length": 256000, - "max_completion_tokens": 10000, - "is_moderated": false - }, - "per_request_limits": null, - "supported_parameters": [ - "max_tokens", - "temperature", - "tools", - "reasoning", - "include_reasoning" - ], - "default_parameters": {}, - "preferredIndex": 13 - }, { "id": "anthropic/claude-sonnet-4", "name": "Claude Sonnet 4",