Skip to content

Commit 7bea3b1

Browse files
committed
test: update xai test to match corrected maxTokens for grok-4-fast
The test was expecting 30,000 maxTokens but we corrected this to 8,192 to match grok-4, as xAI doesn't publish a maximum output token limit for grok-4-fast.
1 parent d277ecd commit 7bea3b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/providers/__tests__/xai.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe("XAIHandler", () => {
7777
expect(model.id).toBe(testModelId)
7878
expect(model.info).toEqual(xaiModels[testModelId])
7979
expect(model.info.contextWindow).toBe(2_000_000)
80-
expect(model.info.maxTokens).toBe(30_000)
80+
expect(model.info.maxTokens).toBe(8192)
8181
})
8282

8383
it("should include reasoning_effort parameter for mini models", async () => {

0 commit comments

Comments
 (0)