fix(llm): drop removed dispatch option from recorded cache tests (#26900)
This commit is contained in:
@@ -31,10 +31,9 @@ const recorded = recordedTests({
|
|||||||
provider: "anthropic",
|
provider: "anthropic",
|
||||||
protocol: "anthropic-messages",
|
protocol: "anthropic-messages",
|
||||||
requires: ["ANTHROPIC_API_KEY"],
|
requires: ["ANTHROPIC_API_KEY"],
|
||||||
// Two identical requests in one cassette — match by recording order so the
|
// Two identical requests in one cassette — replay walks the cassette in
|
||||||
// second call replays the cached-hit interaction.
|
// recording order so the second call replays the cached-hit interaction.
|
||||||
options: {
|
options: {
|
||||||
dispatch: "sequential",
|
|
||||||
redactor: Redactor.defaults({ requestHeaders: { allow: ["content-type", "anthropic-version"] } }),
|
redactor: Redactor.defaults({ requestHeaders: { allow: ["content-type", "anthropic-version"] } }),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -38,9 +38,8 @@ const recorded = recordedTests({
|
|||||||
provider: "amazon-bedrock",
|
provider: "amazon-bedrock",
|
||||||
protocol: "bedrock-converse",
|
protocol: "bedrock-converse",
|
||||||
requires: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY"],
|
requires: ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY"],
|
||||||
// Two identical requests in one cassette — match by recording order so the
|
// Two identical requests in one cassette — replay walks the cassette in
|
||||||
// second call replays the cached-hit interaction.
|
// recording order so the second call replays the cached-hit interaction.
|
||||||
options: { dispatch: "sequential" },
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("Bedrock Converse cache recorded", () => {
|
describe("Bedrock Converse cache recorded", () => {
|
||||||
|
|||||||
@@ -29,9 +29,8 @@ const recorded = recordedTests({
|
|||||||
provider: "google",
|
provider: "google",
|
||||||
protocol: "gemini",
|
protocol: "gemini",
|
||||||
requires: ["GOOGLE_GENERATIVE_AI_API_KEY"],
|
requires: ["GOOGLE_GENERATIVE_AI_API_KEY"],
|
||||||
// Two identical requests in one cassette — match by recording order so the
|
// Two identical requests in one cassette — replay walks the cassette in
|
||||||
// second call replays the cached-hit interaction.
|
// recording order so the second call replays the cached-hit interaction.
|
||||||
options: { dispatch: "sequential" },
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("Gemini cache recorded", () => {
|
describe("Gemini cache recorded", () => {
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ const recorded = recordedTests({
|
|||||||
provider: "openai",
|
provider: "openai",
|
||||||
protocol: "openai-responses",
|
protocol: "openai-responses",
|
||||||
requires: ["OPENAI_API_KEY"],
|
requires: ["OPENAI_API_KEY"],
|
||||||
// Two identical requests in one cassette — match by recording order so the
|
// Two identical requests in one cassette — replay walks the cassette in
|
||||||
// second call replays the cached-hit interaction, not the cold-miss one.
|
// recording order so the second call replays the cached-hit interaction,
|
||||||
options: { dispatch: "sequential" },
|
// not the cold-miss one.
|
||||||
})
|
})
|
||||||
|
|
||||||
describe("OpenAI Responses cache recorded", () => {
|
describe("OpenAI Responses cache recorded", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user