We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e43c9fe commit a462877Copy full SHA for a462877
evals/index.eval.ts
@@ -39,6 +39,7 @@ import { groq } from "@ai-sdk/groq";
39
import { cerebras } from "@ai-sdk/cerebras";
40
import { openai } from "@ai-sdk/openai";
41
import { AISdkClient } from "@/examples/external_clients/aisdk";
42
+import { xai } from "@ai-sdk/xai";
43
dotenv.config();
44
45
/**
@@ -350,6 +351,10 @@ const generateFilteredTestcases = (): Testcase[] => {
350
351
),
352
353
});
354
+ } else if (input.modelName.startsWith("grok")) {
355
+ llmClient = new AISdkClient({
356
+ model: wrapAISDKModel(xai(input.modelName)),
357
+ });
358
} else if (input.modelName.includes("/")) {
359
llmClient = new CustomOpenAIClient({
360
modelName: input.modelName as AvailableModel,
0 commit comments