Skip to content

Commit fd25134

Browse files
Qardclaude
andcommitted
fix(e2e): fix hermetic cassette mismatches for ai-sdk, groq, and cohere
- ai-sdk: remove "**" wildcard from ignoreBodyFields so stream vs non-stream requests match the correct cassette entries; the wildcard was causing non-streaming calls to receive SSE responses - groq: split synthetic reasoning SSE entry into separate content and stop/usage chunks so x_groq.usage is captured; fix entry 3 callIndex from 2 to 3 - cohere: rewrite v7-14-0 cassette from /v1/{chat,embed,rerank} to /v2/{chat,embed,rerank} to match what client.v2.* actually calls Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 6228c33 commit fd25134

4 files changed

Lines changed: 109 additions & 420 deletions

File tree

e2e/helpers/cassette-filters.mjs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@
77

88
const AI_SDK_VOLATILE_FIELDS = {
99
ignoreBodyFields: [
10-
// Strip ALL body fields so matching falls back to URL + method + callIndex.
11-
// The AI SDK scenarios make requests in a deterministic order; the cassette
12-
// entries are distinguished by position (callIndex), not by body content.
13-
// This avoids spurious misses caused by the SDK adding new default fields
14-
// between minor versions (e.g. Responses API drift: store, truncation, etc.)
15-
// or by schema format changes in tool definitions.
16-
"**",
17-
// (The specific field list below is kept for documentation purposes but
18-
// is superseded by the ** wildcard above.)
1910
// AI SDK volatile fields (change per-run)
2011
"experimental_generateMessageId",
2112
"messageId",

0 commit comments

Comments
 (0)