Skip to content

Commit

Permalink
Use shorter grok-2 model alias
Browse files Browse the repository at this point in the history
  • Loading branch information
kzu committed Feb 19, 2025
1 parent d901b37 commit fb4d8bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/AI.Benchmarks/ModelPerformance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class ModelPerformance
new ChatMessage(ChatRole.User, "What is the meaning of life, the universe, and everything?"),
];

[Params("oai-gpt-4o", "oai-gpt-4o-mini", "aai-gpt-4o", "aai-gpt-4o-mini", "xai-grok-beta", "xai-grok-2-latest")]
[Params("oai-gpt-4o", "oai-gpt-4o-mini", "aai-gpt-4o", "aai-gpt-4o-mini", "xai-grok-beta", "xai-grok-2")]
public string? Client { get; set; }

[GlobalSetup]
Expand Down Expand Up @@ -61,13 +61,13 @@ public void Setup()
{
Endpoint = new(configuration.ǃ("xAI:Endpoint"))
}).AsChatClient("grok-beta"));
collection.AddKeyedChatClient("xai-grok-2-latest",
collection.AddKeyedChatClient("xai-grok-2",
new OpenAI.OpenAIClient(
new ApiKeyCredential(configuration.ǃ("xAI:Key")),
new OpenAI.OpenAIClientOptions
{
Endpoint = new(configuration.ǃ("xAI:Endpoint"))
}).AsChatClient("grok-2-latest"));
}).AsChatClient("grok-2"));

services = collection.BuildServiceProvider();
}
Expand Down

0 comments on commit fb4d8bd

Please sign in to comment.