Skip to content

Commit fb4d8bd

Browse files
committed
Use shorter grok-2 model alias
1 parent d901b37 commit fb4d8bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/AI.Benchmarks/ModelPerformance.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class ModelPerformance
2525
new ChatMessage(ChatRole.User, "What is the meaning of life, the universe, and everything?"),
2626
];
2727

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

3131
[GlobalSetup]
@@ -61,13 +61,13 @@ public void Setup()
6161
{
6262
Endpoint = new(configuration.ǃ("xAI:Endpoint"))
6363
}).AsChatClient("grok-beta"));
64-
collection.AddKeyedChatClient("xai-grok-2-latest",
64+
collection.AddKeyedChatClient("xai-grok-2",
6565
new OpenAI.OpenAIClient(
6666
new ApiKeyCredential(configuration.ǃ("xAI:Key")),
6767
new OpenAI.OpenAIClientOptions
6868
{
6969
Endpoint = new(configuration.ǃ("xAI:Endpoint"))
70-
}).AsChatClient("grok-2-latest"));
70+
}).AsChatClient("grok-2"));
7171

7272
services = collection.BuildServiceProvider();
7373
}

0 commit comments

Comments
 (0)