mirror of
https://github.com/anomalyco/opencode.git
synced 2026-07-18 10:43:30 +00:00
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com> Co-authored-by: 冯基魁 <56265583+fengjikui@users.noreply.github.com>
8 lines
322 B
TypeScript
8 lines
322 B
TypeScript
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)
|
|
})
|
|
})
|