mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(ai): align copilot claude adaptive test
This commit is contained in:
parent
cf7f2e3dbb
commit
533d37305c
1 changed files with 2 additions and 2 deletions
|
|
@ -91,7 +91,7 @@ describe("Copilot Claude via Anthropic Messages", () => {
|
|||
expect(Array.isArray(params.messages)).toBe(true);
|
||||
});
|
||||
|
||||
it("includes interleaved-thinking beta when reasoning is enabled", async () => {
|
||||
it("omits interleaved-thinking beta for adaptive-thinking models", async () => {
|
||||
const model = getModel("github-copilot", "claude-sonnet-4.6");
|
||||
const s = streamAnthropic(model, context, {
|
||||
apiKey: "tid_copilot_session_test_token",
|
||||
|
|
@ -102,6 +102,6 @@ describe("Copilot Claude via Anthropic Messages", () => {
|
|||
}
|
||||
|
||||
const headers = mockState.constructorOpts!.defaultHeaders as Record<string, string>;
|
||||
expect(headers["anthropic-beta"]).toContain("interleaved-thinking-2025-05-14");
|
||||
expect(headers["anthropic-beta"] ?? "").not.toContain("interleaved-thinking-2025-05-14");
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue