mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 00:52:18 +03:00
* fix(kiro): fetch builder id quota without profile arn * fix(kiro): harden auth imports polling and model discovery * fix(kiro): preserve auth identity and OAuth polling semantics * docs(changelog): add Kiro auth and model discovery fix --------- Co-authored-by: Nguyễn Thanh Hà <nguyenha@Mac-mini-M4.local> Co-authored-by: nguyenha935 <208228297+nguyenha935@users.noreply.github.com>
19 lines
674 B
TypeScript
19 lines
674 B
TypeScript
import test from "node:test";
|
|
import assert from "node:assert/strict";
|
|
|
|
import { buildKiroPayload } from "../../open-sse/translator/request/openai-to-kiro.ts";
|
|
|
|
const body = { messages: [{ role: "user", content: "Hello" }] };
|
|
|
|
test("buildKiroPayload rejects removed or non-functional Kiro aliases", () => {
|
|
assert.throws(() => buildKiroPayload("auto-kiro", body, true, {}), /not a real Kiro/);
|
|
assert.throws(
|
|
() => buildKiroPayload("claude-sonnet-5-agentic", body, true, {}),
|
|
/agentic aliases are not supported/
|
|
);
|
|
assert.throws(
|
|
() => buildKiroPayload("claude-sonnet-4.5-thinking", body, true, {}),
|
|
/does not support the '-thinking' alias/
|
|
);
|
|
});
|