language_models: Fix tool calling for `x-ai/grok-code-fast-1` model via 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.
c8e99125bdUmesh Yadav committed on 8/28/2025, 3:28:22 PM· committed by GitHubparent835e5ba
1 file changedLine totals unavailable