instructor
instructor copied to clipboard
feat(client,function_calls,process_response,test_new_client): enhance create method to handle multiple responses
:rocket: This PR description was created by Ellipsis for commit bfa4ca14fff73c2d2c28485230933bcdc83fa595. |
---|
Summary:
This PR enhances the create
method to handle multiple responses from the OpenAI API, updates various methods in function_calls.py
and process_response.py
to handle multiple responses, and includes a test for multiple responses in test_new_client.py
.
Key points:
- Overloaded
create
method inclient.py
to handle multiple responses. - Updated
handle_kwargs
method inclient.py
to includen
parameter in kwargs. - Updated
function_calls.py
to handle multiple responses inparse_functions
,parse_tools
, andparse_json
methods. - Updated
process_response.py
to attach raw response to each model in case of IterableBase response model. - Updated
test_new_client.py
to include a test for multiple responses.
Generated with :heart: by ellipsis.dev
Deploying instructor with
Cloudflare Pages
Latest commit: |
712f15a
|
Status: | ✅ Deploy successful! |
Preview URL: | https://53be96dd.instructor.pages.dev |
Branch Preview URL: | https://support-n.instructor.pages.dev |
@ellipsis-dev can you fix the merge conflicts
Could you please specify which files have conflicts and what the conflicts are? This will help me resolve the merge conflicts more effectively. Thank you.
Responding to this comment by @jxnl. For more information about Ellipsis, check the documentation.
Why was this closed without merge? Interested in this feature
too many conflicts, didnt know if people really needed this
@jxnl Multiple responses would be incredibly useful to have. I'm trying to do something like Getting 50% (SoTA) on ARC-AGI with GPT-4o, and it requires drawing thousands of independent samples.
we also have this kind of use cases where we want to generate multiple individual samples in one call. it would be great if you can reopen and merge this PR!