Skip to content
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

Add Picture API file example to the Examples Folder #977

Merged
merged 6 commits into from
Jan 3, 2024

Conversation

furofo
Copy link
Contributor

@furofo furofo commented Dec 16, 2023

Added a new example file to the 'examples' folder that demonstrates how to use the OpenAI Picture API. The example generates an image based on a provided prompt and prints the response with a URL link to the image. Before there were no examples available for the Picture API, which could be confusing for users. This should provide more clarity for users of the new API.

…trieving and printing a picture to the console using the new API. Previously, no examples were provided for images, making it unclear.
@furofo furofo requested a review from a team as a code owner December 16, 2023 22:27
@rattrayalex
Copy link
Collaborator

Thank you for the contribution @furofo !

@rattrayalex rattrayalex changed the base branch from main to next December 23, 2023 23:25
Copy link
Contributor

@logankilpatrick logankilpatrick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@logankilpatrick logankilpatrick merged commit b201083 into openai:next Jan 3, 2024
stainless-bot pushed a commit that referenced this pull request Jan 9, 2024
* Added a file to the examples folder to provide a simple example of retrieving and printing a picture to the console using the new API. Previously, no examples were provided for images, making it unclear.

* Update picture.py

---------

Co-authored-by: Logan Kilpatrick <[email protected]>
megamanics pushed a commit to devops-testbed/openai-python that referenced this pull request Aug 14, 2024
* Added a file to the examples folder to provide a simple example of retrieving and printing a picture to the console using the new API. Previously, no examples were provided for images, making it unclear.

* Update picture.py

---------

Co-authored-by: Logan Kilpatrick <[email protected]>
cgayapr pushed a commit to cgayapr/openai-python that referenced this pull request Dec 14, 2024
* Added a file to the examples folder to provide a simple example of retrieving and printing a picture to the console using the new API. Previously, no examples were provided for images, making it unclear.

* Update picture.py

---------

Co-authored-by: Logan Kilpatrick <[email protected]>
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.

3 participants