-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Support image generation and output with Google and OpenAI #2970
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
58772e6
Generate FileParts for images generated by Google and OpenAI
DouweM 3089c94
Add Image class
DouweM 09f852b
fix 3.10
DouweM 39ff6c6
fix snapshot with pretty quote
DouweM bf79068
Refactor output schemas to prepare for allows_image
DouweM 1e26d7a
Support output_type=Image
DouweM 1a62094
Automatically add built-in image generation tool in OpenAI model if I…
DouweM 941021a
fix snapshot
DouweM cc44d4f
Merge branch 'main' into image-generation
DouweM bea8fe8
fix errors after merge conflicts
DouweM dd71619
Simplify handling of response without expected output
DouweM 93a3492
Test interaction of image generation with output and tool calls
DouweM 86d8f1e
streaming
DouweM e631131
support OpenAI image generation tool options and result metadata
DouweM 288983a
Fake support for ImageGenerationTool on GoogleModel
DouweM 6c7e072
test on vertex
DouweM 5e9af12
add missing cassettes
DouweM 9807c74
fix lint
DouweM 41f3350
Fix a bunch of tests
DouweM 9e6fc4b
Include assistant file parts in OTel messages
DouweM 4c66656
Use global Vertex region for tests, as it has image-preview model
DouweM ef0d9c1
fix tests
DouweM 8006b83
fix vertex cassettes
DouweM b353943
fix vertex cassette
DouweM dda7a48
Raise error when using image output with Temporal
DouweM a087703
coverage
DouweM 4551fd5
coverage
DouweM 99ebf3d
coverage
DouweM 6b0b1c7
Rename Image to BinaryImage, verify it supports roundtrip serialization
DouweM 215f6ec
Fix test
DouweM 40feb36
Add result.response.{text,thinking,files,tool_calls,builtin_tool_call…
DouweM 960b5ea
Add response property to AgentStream and StreamedResponseSync
DouweM f212df4
coverage
DouweM 577e327
Use ModelResponse convenience accessors
DouweM 9cc6a04
coverage
DouweM fe6f026
tweaks
DouweM 52da4f1
Add ModelResponse.images helper property
DouweM b33f78a
fix cli copy test
DouweM c353b99
address feedback
DouweM 91b2824
Add docs
DouweM f394f7a
Add links to model settings docs
DouweM 91e2283
Fix Groq API docs link
DouweM File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.