fix: update stale CI test expectations

This commit is contained in:
Mario Zechner
2026-04-24 20:22:16 +02:00
parent 39a9784d2a
commit 91154d9757
5 changed files with 13 additions and 7 deletions

View File

@@ -132,9 +132,10 @@ describe("openai-completions prompt caching", () => {
expect(payload?.prompt_cache_retention).toBeUndefined();
});
it("omits prompt cache fields for non-OpenAI base URLs", async () => {
it("omits prompt cache fields for non-OpenAI base URLs without compatible long retention", async () => {
const model = createModel({
baseUrl: "https://proxy.example.com/v1",
compat: { supportsLongCacheRetention: false },
});
const { payload } = await captureRequest({ cacheRetention: "long", sessionId: "session-proxy" }, model);