Skip to content

Commit 00c7c14

Browse files
committed
test(ai-sdk): cover v7 inline file attachments in e2e and re-record
- Keep the AI SDK v7 `{ type: "data", data }` envelope when logging inline file bytes as attachments, matching the decision-image logging shape. - Add a streamText image-file e2e operation (v5+, tagged data on v7) that asserts file bytes are logged as attachments on both the parent and model spans. It fails without the fix. - Replace the plugin unit test and two live-API wrapper image tests with this e2e coverage, and drop the unused test-image.png fixture. - Move the scenario off the deprecated gpt-4.1-nano and gpt-4o-mini to gpt-5.4-nano (v3 keeps gpt-4o-mini because its provider sends max_tokens), send prior tool items inline with store: false, and re-record all cassettes and snapshots.
1 parent 9b8a7be commit 00c7c14

63 files changed

Lines changed: 57012 additions & 32474 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/ai-sdk-v7-inline-file-attachments.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"braintrust": patch
33
---
44

5-
fix(ai-sdk): log AI SDK v7 inline file data as attachments instead of copying the bytes into the span
5+
fix(ai-sdk): log AI SDK v7 inline file data as attachments

‎e2e/scenarios/ai-sdk-instrumentation/__cassettes__/ai-sdk-v3-latest.cassette.json‎

Lines changed: 612 additions & 627 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎e2e/scenarios/ai-sdk-instrumentation/__cassettes__/ai-sdk-v3.cassette.json‎

Lines changed: 64 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎e2e/scenarios/ai-sdk-instrumentation/__cassettes__/ai-sdk-v4-latest.cassette.json‎

Lines changed: 726 additions & 767 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎e2e/scenarios/ai-sdk-instrumentation/__cassettes__/ai-sdk-v4.cassette.json‎

Lines changed: 724 additions & 766 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎e2e/scenarios/ai-sdk-instrumentation/__cassettes__/ai-sdk-v5-latest.cassette.blobs/2c099aa095f2b05364fcf83f92250c00bfa2e06b04b90ccfa50f8a8cb5201347.bin‎

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎e2e/scenarios/ai-sdk-instrumentation/__cassettes__/ai-sdk-v5-latest.cassette.blobs/4e4ebafb2070bb860ec639976a0a3b7173caf3f10701e398e0a68f9c7a88c009.bin‎

Lines changed: 0 additions & 25 deletions
This file was deleted.

‎e2e/scenarios/ai-sdk-instrumentation/__cassettes__/ai-sdk-v5-latest.cassette.json‎

Lines changed: 1393 additions & 1238 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)