From 38787ca5a88c4dbf639ffd6ae560152c46a6f8af Mon Sep 17 00:00:00 2001 From: Daniel Cazzulino Date: Sat, 11 Oct 2025 20:49:21 -0300 Subject: [PATCH] Simplify X.AI provider name metadata to xai --- src/AI/Grok/GrokChatClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AI/Grok/GrokChatClient.cs b/src/AI/Grok/GrokChatClient.cs index 2b7b29b..d657320 100644 --- a/src/AI/Grok/GrokChatClient.cs +++ b/src/AI/Grok/GrokChatClient.cs @@ -28,7 +28,7 @@ public GrokChatClient(string apiKey, string modelId, OpenAIClientOptions? option this.modelId = modelId; this.options = options ?? new(); this.options.Endpoint ??= new Uri("https://api.x.ai/v1"); - metadata = new ChatClientMetadata("x.ai", this.options.Endpoint, modelId); + metadata = new ChatClientMetadata("xai", this.options.Endpoint, modelId); // NOTE: by caching the pipeline, we speed up creation of new chat clients per model, // since the pipeline will be the same for all of them.