mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
Strip the generic dashboard model(level) suffix before resolving Kiro synthetic -thinking/-agentic variants so the upstream request no longer carries an invalid parenthesized model id. Map explicit levels to native Kiro effort fields only for supported Claude/GPT model families, and stop advertising native levels for unsupported legacy Kiro models. Applies to both OpenAI→Kiro and direct Claude→Kiro routes.
15 lines
613 B
JavaScript
15 lines
613 B
JavaScript
import { describe, it, expect } from "vitest";
|
|
import { getThinkingLevels } from "../../open-sse/providers/thinkingLevels.js";
|
|
|
|
describe("getThinkingLevels for Kiro", () => {
|
|
it("does not advertise native intensity for legacy Kiro models", () => {
|
|
expect(getThinkingLevels("kiro", "claude-sonnet-4.5")).toBeNull();
|
|
expect(getThinkingLevels("kiro", "glm-5")).toBeNull();
|
|
});
|
|
|
|
it("advertises native levels for supported Kiro models", () => {
|
|
expect(getThinkingLevels("kiro", "claude-sonnet-5")).toContain("high");
|
|
expect(getThinkingLevels("kiro", "gpt-5.6-sol")).toContain("xhigh");
|
|
});
|
|
});
|