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

Implemennt the anthropic batch api in batch.py #1063

Closed
jxnl opened this issue Oct 11, 2024 · 7 comments
Closed

Implemennt the anthropic batch api in batch.py #1063

jxnl opened this issue Oct 11, 2024 · 7 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@jxnl
Copy link
Collaborator

jxnl commented Oct 11, 2024

https://www.anthropic.com/news/message-batches-api

The batch API is now available in Anthropic. I would be interested in someone helping out and being able to support this.

@jxnl jxnl added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Oct 11, 2024
@josca42
Copy link

josca42 commented Oct 14, 2024

I can create a pr for this and help maintain it. Since I need this functionality in my project, where I use instructor quite a lot.

If no in else is chiming in today. I'll look into it and hopefully submit a pr tomorrow.

@josca42
Copy link

josca42 commented Oct 14, 2024

Created pr here: #1075

Arrhh, just saw you created a pull request 3 days ago.. Shoot... Hmm, ok.. I guess that's it then.

Thanks for creating the library it s really useful.

@jxnl
Copy link
Collaborator Author

jxnl commented Oct 16, 2024

this is my fault for not tagging :(

@economy
Copy link
Contributor

economy commented Nov 18, 2024

Not sure if this is working yet, on create-from-file getting:

BadRequestError: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'requests.0.params: Field required'}}

Am I missing something? Happy to help improve this if needed

@economy
Copy link
Contributor

economy commented Nov 19, 2024

#1193 addresses changes to create_from_messages to match what Anthropic's API is expecting

@mdabir1203
Copy link

is this done ? If it is how it is done ?

@jxnl
Copy link
Collaborator Author

jxnl commented Dec 15, 2024

@jxnl jxnl closed this as completed Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants