-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Pr 2954 ci branch #3006
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
Closed
Closed
Pr 2954 ci branch #3006
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
9a9a763
fix: Adapt function call response to return a json string for arguments
Trofleb 8542e2b
feat: Make streaming for tool calling behave the same as the open ai api
Trofleb c1c4dfb
fix: Allow back arguments in function definition and the correspondin…
Trofleb 983b967
fix: Functioncall is actually a bit different than the deprecated fun…
Trofleb 0ca7af8
feat: serialize function definition with serialize_as_string
drbh 5f03014
fix: bump openapi spec
drbh dbce04e
fix: adjust streaming tool response
drbh 07c2090
fix: ensure wrapping curly is not included
drbh 40f905d
fix: adjust stream, improve tests and add openai client test
drbh 1529a67
fix: remove snap with incorrect naming
drbh c215c0d
fix: bump client test expected prefill
drbh 7d17d7c
fix: bump client tests for api changes
drbh fd611f3
fix: bump integration test deps for openai
drbh 68aa6b1
fix: bump requirements file too
drbh 538456b
fix: only send function name on first stream event
drbh e1b6d5b
fix: clippy cleanup
drbh a416ddb
fix: adjust integration tests for openai client dep
drbh 31a536d
feat: refactor chat stream to remove state machine and simplfy logic
drbh c4cb54c
fix: bump integrations requirements
drbh a5ddc9d
feat: refactor and simplify chat stream more, bump tests and support …
drbh 330f2e4
feat: improve partial parsing types and add test for balancing and pa…
drbh efb2005
feat: consolidate streaming and event creation logic and add tests fo…
drbh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
29 changes: 29 additions & 0 deletions
29
integration-tests/models/__snapshots__/test_openai_llama_tools/test_openai_llama_tools.json
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"choices": [ | ||
{ | ||
"delta": { | ||
"role": "assistant", | ||
"tool_calls": [ | ||
{ | ||
"function": { | ||
"arguments": "\"}", | ||
"name": "get_current_weather" | ||
}, | ||
"id": "", | ||
"index": 0, | ||
"type": "function" | ||
} | ||
] | ||
}, | ||
"finish_reason": null, | ||
"index": 0, | ||
"logprobs": null | ||
} | ||
], | ||
"created": 1739910558, | ||
"id": "", | ||
"model": "meta-llama/Llama-3.1-8B-Instruct", | ||
"object": "chat.completion.chunk", | ||
"system_fingerprint": "3.1.1-dev0-native", | ||
"usage": null | ||
} |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
Shouldn't we to tool_call check instead?