This commit is contained in:
can1357
2026-07-16 03:04:51 +02:00
parent e289975e02
commit 778ef6d7fa
+12 -2
View File
@@ -464,13 +464,23 @@ describe("Anthropic request fingerprint alignment", () => {
},
});
await streamAnthropic(vertexModel, { systemPrompt: ["Stay concise."], messages: [{ role: "user", content: "Hi", timestamp: Date.now() }] }, { apiKey: "vertex-adc", thinkingEnabled: true, effort: "high", fetch: fetchMock, fallbacks: [
await streamAnthropic(
vertexModel,
{ systemPrompt: ["Stay concise."], messages: [{ role: "user", content: "Hi", timestamp: Date.now() }] },
{
apiKey: "vertex-adc",
thinkingEnabled: true,
effort: "high",
fetch: fetchMock,
fallbacks: [
{
model: "claude-sonnet-4-6@20260101",
max_tokens: 4_096,
output_config: { effort: "high" },
},
] }).result();
],
},
).result();
expect(capturedBeta ?? "").not.toContain("effort-2025-11-24");
expect(capturedBody?.output_config?.effort).toBeUndefined();