chore(aio): multimodal passthrough e2e test - #58
Merged
carlos-marchal-ph merged 1 commit intoJul 24, 2026
Conversation
|
|
||
| label = f"multimodal-e2e-{uuid.uuid4().hex[:8]}" | ||
| print(f"Batch label: {label}") | ||
| print(f"Target: {args.host} (key {api_key[:9]}...)") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Adds
scripts/test_multimodal_passthrough.py, an e2e test for posthog-python's multimodal passthrough path (Posthog(_enable_multimodal_capture=True)). It makes real provider calls covering five cases — OpenAI audio in/out, OpenAI vision, Anthropic vision, Gemini video, and a deliberately >1MB WAV-output event — plus an opt-in Gemini image-generation case (--with-imagegen, needs a paid-tier key). It then polls local ClickHouse'sai_eventstable and asserts the media arrived unredacted, either inline as base64 or offloaded to blob storage as aphaiblob://URI of the original byte size.Bumps
posthogto>=7.29.0, the release that ships multimodal capture, so the test runs against the published SDK.How to test
Needs
OPENAI_API_KEY,GEMINI_API_KEY,ANTHROPIC_API_KEY, a local PostHog stack on:8010, and ClickHouse on:8123(or--skip-verifyto only exercise capture).🤖 Agent context
Reviewed and PR'd by Claude Code on Carlos's behalf. Verified the released 7.29.0 exposes everything the script uses (
_enable_multimodal_capture, AI lane internals,posthog.aiprovider wrappers). Stray untracked build artifacts (dist/,node/) were excluded.