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

Adding Batch Processing notebook #1164

Merged
merged 5 commits into from
Apr 26, 2024
Merged

Adding Batch Processing notebook #1164

merged 5 commits into from
Apr 26, 2024

Conversation

katia-openai
Copy link
Contributor

Added a notebook to show how to use the new Batch API with the gpt-4-vision-preview model.

This covers elements that are not yet in the docs such as:

  • How to create a batch file
  • How to retrieve a batch job
  • How to use results

Also updated registry.yaml to add the notebook to the cookbook website.

"}\n",
"```\n",
"\n",
"Note: the task ID should be unique per batch job. This is what you can use to match results to the initial input files, are tasks will not be returned in the same order."

Choose a reason for hiding this comment

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

do you mean the ID is unique per each task?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure about the wording here. To me each line is a task that is part of a broader batch job. Would you say something different?

@trevorcreech
Copy link

Bit of a naming nit but we're using batches and requests as the nouns in the API (not jobs and tasks)—would be nice to be consistent here

@katia-openai
Copy link
Contributor Author

Bit of a naming nit but we're using batches and requests as the nouns in the API (not jobs and tasks)—would be nice to be consistent here

Got it, will update!

@katia-openai katia-openai removed the request for review from ibigio April 26, 2024 08:23
@katia-openai katia-openai merged commit 7973210 into main Apr 26, 2024
@katia-openai katia-openai deleted the katia/batch_api branch April 26, 2024 17:27
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.

None yet

4 participants