language_models: Fix grok-code-fast-1 support for Copilot (#37116)

This PR fixes a deserialization issue in GitHub Copilot Chat that was
causing warnings when encountering xAI models from the GitHub Copilot
API and skipping the Grok model from model selector.

Release Notes:

- Fixed support for xAI models that are now available through GitHub
Copilot Chat.
This commit is contained in:
Umesh Yadav
2025-08-31 18:51:17 -04:00
committed by GitHub
parent d74384f6e2
commit c833f8905b
2 changed files with 11 additions and 1 deletions
+2
View File
@@ -164,6 +164,8 @@ pub enum ModelVendor {
OpenAI,
Google,
Anthropic,
#[serde(rename = "xAI")]
XAI,
}
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq, Clone)]