Skip to content

Examples for image inputs #553

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 1 commit into from
Apr 21, 2025
Merged

Examples for image inputs #553

merged 1 commit into from
Apr 21, 2025

Conversation

rm-openai
Copy link
Collaborator

@rm-openai rm-openai commented Apr 20, 2025

No description provided.

@rm-openai rm-openai merged commit 4b8472d into main Apr 21, 2025
5 checks passed
@rm-openai rm-openai deleted the rm/pr553 branch April 21, 2025 15:14
@cjescudero
Copy link

Nice and useful examples!

Do you know if there is a limit size of the image as base64? I suppose that the problem will be the context window size.

@pakrym-oai
Copy link
Contributor

The limit is 20MB per image https://platform.openai.com/docs/guides/images/image-generation?api-mode=responses&format=base64-encoded#image-input-requirements

hankun11 pushed a commit to hankun11/openai-agents-python that referenced this pull request Apr 23, 2025
* upstream/main:
  Examples: Fix financial_research_agent instructions (openai#573)
  Adding extra_headers parameters to ModelSettings (openai#550)
  v0.0.12 (openai#564)
  Pass through organization/project headers to tracing backend, fix speech_group enum (openai#562)
  Docs and tests for litellm (openai#561)
  RFC: automatically use litellm if possible (openai#534)
  Fix visualize graph filename to without extension. (openai#554)
  Start and finish streaming trace in impl metod (openai#540)
  Enable non-strict output types (openai#539)
  Examples for image inputs (openai#553)
@ceeyangwen
Copy link

Hi, @rm-openai is there an example how agent output an image. I try serval ways, but couldn't implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants