-
Notifications
You must be signed in to change notification settings - Fork 114
feat: add tool calling support to m serve #850
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
Open
markstur
wants to merge
20
commits into
generative-computing:main
Choose a base branch
from
markstur:issue_825
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
c2113e3
feat: add tool calling support to m serve
markstur 82a8fb7
fix: fixed the bug in m serve where finish_reason=tool_calls for empt…
markstur d897e41
fix: move message add to outside the loop in client_tool_calling.py e…
markstur 128a9c6
fix: cli app.py loop variable tool_name is never used
markstur 0e23d92
fix: fix test_mot_init_typing() hasattr was always true
markstur 0f894d8
fix: update m_serve_example_tool_calling.py to use safer example tool
markstur 7de99e4
fix: replace repeated hard-coded string with constant
markstur 98ede72
fix: add TOOL_CHOICE to ModelOptions like TEMPERATURE not a sentinel
markstur 6a812f2
fix: fix m serve tool-calling examples
markstur 8bd74fd
fix: remove unused imports in example
markstur 9a82f5f
feat: cli support for OpenAI API tool calling with streaming
markstur e12f2a7
fix: add required index field to streaming tool call deltas
markstur 0177010
fix: move build_tool_calls invocation
markstur 43cb8b8
test: add integration test for cli/serve using TestClient with stream…
markstur e68d50c
fix: use fallback for json.dumps in build_tool_calls
markstur f3c9d85
test: restore cli streaming tests to fix conflicts
markstur e46afd3
test: update output.usage -> output.generation.usage
markstur 5b737ab
test: update tests usage -> gneration.usage
markstur 3aea0c3
refactor(serve): simplify tool call construction with Pydantic valida…
markstur 2b6792e
fix: remove unused imports
markstur 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
Some comments aren't visible on the classic Files Changed page.
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
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.
Uh oh!
There was an error while loading. Please reload this page.