Skip to content

Conversation

@imumesh18
Copy link
Contributor

@imumesh18 imumesh18 commented Aug 28, 2025

Closes #37022
Closes #36994

This update ensures all Grok models use the JsonSchemaSubset format for tool schemas.

A previous fix for this issue was too specific, only targeting grok-4 models. This caused other variants, like grok-code-fast-1, to be missed. We've now broadened the logic to correctly apply the setting to the entire Grok model family.

Release Notes:

  • Fix tool calling for x-ai/grok-code-fast-1 model via OpenRouter.

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Aug 28, 2025
@imumesh18 imumesh18 changed the title language_models: Fix tool calling for all grok-code model via OpenRouter language_models: Fix tool calling for all x-ai/grok-code-fast-1 model via OpenRouter Aug 28, 2025
@imumesh18 imumesh18 changed the title language_models: Fix tool calling for all x-ai/grok-code-fast-1 model via OpenRouter language_models: Fix tool calling for all x-ai/grok-code-fast-1 model via OpenRouter Aug 28, 2025
@imumesh18 imumesh18 changed the title language_models: Fix tool calling for all x-ai/grok-code-fast-1 model via OpenRouter language_models: Fix tool calling for all x-ai/grok-code-fast-1 model via OpenRouter Aug 28, 2025
@imumesh18 imumesh18 changed the title language_models: Fix tool calling for all x-ai/grok-code-fast-1 model via OpenRouter language_models: Fix tool calling for x-ai/grok-code-fast-1 model via OpenRouter Aug 28, 2025
@SomeoneToIgnore SomeoneToIgnore added the area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features label Aug 28, 2025
@notpeter notpeter self-assigned this Aug 28, 2025
@notpeter
Copy link
Contributor

Works for me! Thank you @imumesh18.

@notpeter notpeter merged commit c8e9912 into zed-industries:main Aug 28, 2025
27 checks passed
notpeter pushed a commit that referenced this pull request Aug 28, 2025
…ia OpenRouter (#37094)

Closes #37022
Closes #36994

This update ensures all Grok models use the JsonSchemaSubset format for
tool schemas.

A previous fix for this issue was too specific, only targeting grok-4
models. This caused other variants, like grok-code-fast-1, to be missed.
We've now broadened the logic to correctly apply the setting to the
entire Grok model family.

Release Notes:

- Fix tool calling for `x-ai/grok-code-fast-1` model via OpenRouter.
notpeter pushed a commit that referenced this pull request Aug 28, 2025
…ia OpenRouter (#37094)

Closes #37022
Closes #36994

This update ensures all Grok models use the JsonSchemaSubset format for
tool schemas.

A previous fix for this issue was too specific, only targeting grok-4
models. This caused other variants, like grok-code-fast-1, to be missed.
We've now broadened the logic to correctly apply the setting to the
entire Grok model family.

Release Notes:

- Fix tool calling for `x-ai/grok-code-fast-1` model via OpenRouter.
@imumesh18 imumesh18 deleted the push-qqwrrmpyuzvz branch August 28, 2025 15:29
tidely pushed a commit to tidely/zed that referenced this pull request Sep 10, 2025
…ia OpenRouter (zed-industries#37094)

Closes zed-industries#37022
Closes zed-industries#36994

This update ensures all Grok models use the JsonSchemaSubset format for
tool schemas.

A previous fix for this issue was too specific, only targeting grok-4
models. This caused other variants, like grok-code-fast-1, to be missed.
We've now broadened the logic to correctly apply the setting to the
entire Grok model family.

Release Notes:

- Fix tool calling for `x-ai/grok-code-fast-1` model via OpenRouter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ai Improvement related to Agent Panel, Edit Prediction, Copilot, or other AI features cla-signed The user has signed the Contributor License Agreement

Projects

None yet

3 participants