-
Notifications
You must be signed in to change notification settings - Fork 308
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
fix null in tool type response #687
Merged
EricLBuehler
merged 3 commits into
EricLBuehler:master
from
wseaton:fix-tool-calling-resp
Aug 15, 2024
Merged
fix null in tool type response #687
EricLBuehler
merged 3 commits into
EricLBuehler:master
from
wseaton:fix-tool-calling-resp
Aug 15, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code Metrics Report=============================================================================== Language Files Lines Code Comments Blanks =============================================================================== C Header 2 35 28 0 7 Dockerfile 1 34 25 0 9 Happy 1 442 369 0 73 JSON 11 102 101 0 1 Python 45 1993 1695 62 236 TOML 20 606 535 11 60 ------------------------------------------------------------------------------- Jupyter Notebooks 4 0 0 0 0 |- Markdown 2 77 32 31 14 |- Python 2 196 169 1 26 (Total) 273 201 32 40 ------------------------------------------------------------------------------- Markdown 27 1894 0 1427 467 |- BASH 5 101 98 0 3 |- JSON 1 12 12 0 0 |- Python 5 92 82 0 10 |- Rust 6 408 365 19 24 |- TOML 2 75 63 0 12 (Total) 2582 620 1446 516 ------------------------------------------------------------------------------- Rust 184 57551 52276 1007 4268 |- Markdown 94 873 13 810 50 (Total) 58424 52289 1817 4318 =============================================================================== Total 296 62657 55029 2507 5121 =============================================================================== |
@wseaton let me know when this is ready for review! |
Building my fork now and should be integration testing it shortly! |
Yep, the above patch works, new inference output: Request
Response
I think this is ready to merge |
EricLBuehler
approved these changes
Aug 15, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks for the fix!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The tool calling response was incorrectly returning a null for function type which breaks langchain's tools handling:
The patch fixes this to return
"type": "function"