fix(llm): classify zai token limit overflow (#35671)
This commit is contained in:
parent
78f85b1cd6
commit
adf178a6b9
3 changed files with 10 additions and 0 deletions
8
packages/llm/test/provider-error.test.ts
Normal file
8
packages/llm/test/provider-error.test.ts
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import { describe, expect, test } from "bun:test"
|
||||
import { isContextOverflow } from "../src"
|
||||
|
||||
describe("provider error classification", () => {
|
||||
test("classifies Z.AI GLM token limit messages as context overflow", () => {
|
||||
expect(isContextOverflow("tokens in request more than max tokens allowed")).toBe(true)
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue