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

feat: add ParallelToolCalls to RunRequest #847

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

kenshin54
Copy link
Contributor

Describe the change
By default, parallel_tool_calls is set to true, which allows the llm to make multiple tool calls in one response. This can be opted out of with setting it to false, and ensures the llm only responds with one tool call at a time.

Provide OpenAI documentation link
https://platform.openai.com/docs/api-reference/runs/createRun#runs-createrun-parallel_tool_calls

Describe your solution
This PR added the same change as #787 , an any field ParallelToolCalls.

Tests
No new tests added.

Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.01%. Comparing base (774fc9d) to head (a6ca0b4).
Report is 47 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #847      +/-   ##
==========================================
+ Coverage   98.46%   99.01%   +0.55%     
==========================================
  Files          24       26       +2     
  Lines        1364     1418      +54     
==========================================
+ Hits         1343     1404      +61     
+ Misses         15        8       -7     
  Partials        6        6              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@sashabaranov sashabaranov 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 for the PR!

@sashabaranov sashabaranov merged commit 9a4f3a7 into sashabaranov:master Sep 20, 2024
3 checks passed
@kenshin54 kenshin54 deleted the parallel-option-runrequest branch September 23, 2024 07:26
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.

2 participants