@@ -46,11 +46,13 @@ describe("getCacheFamily", () => {
4646 expect(getCacheFamily("anthropic/claude-3-opus")).toBe("anthropic");
4747 expect(getCacheFamily("zen/claude-sonnet-4-6")).toBe("anthropic");
4848 });
49- test("identifies openai family", () => {
50- expect(getCacheFamily("openai/gpt-4")).toBe("openai");
51- expect(getCacheFamily("zen/gpt-4o")).toBe("openai");
52- expect(getCacheFamily("zen/o1")).toBe("openai");
49+ test("openai and zen/gpt-* return none (caching is automatic, no client hint needed)", () => {
50+ expect(getCacheFamily("openai/gpt-4")).toBe("none");
51+ expect(getCacheFamily("zen/gpt-4o")).toBe("none");
52+ expect(getCacheFamily("zen/o1")).toBe("none");
53+ expect(getCacheFamily("zen/gpt-5-nano")).toBe("none");
5354 });
55+
5456 test("identifies google family", () => {
5557 expect(getCacheFamily("google/gemini-2.0-flash")).toBe("google");
5658 expect(getCacheFamily("zen/gemini-2.5-pro")).toBe("google");
@@ -67,15 +69,13 @@ describe("getCachingProviderOptions", () => {
6769 ).toBeNull();
6870 });
6971
70- test("returns openai prompt cache retention", () => {
72+ test("returns null for openai (caching is automatic, no hint sent)", () => {
7173 expect(
7274 getCachingProviderOptions("openai/gpt-4", {
7375 enabled: true,
7476 openaiRetention: "24h",
7577 }),
76- ).toEqual({
77- openai: { promptCacheRetention: "24h" },
78- });
78+ ).toBeNull();
7979 });
8080
8181 test("returns google cached content when explicit caching is compatible", () => {