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

tool-call: add support to llama-cli using new --tools arg #11556

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bandoti
Copy link
Collaborator

@bandoti bandoti commented Jan 31, 2025

This PR adds support for tool-calls using a --tools switch to llama-cli.

It is currently ⚠Experimental!⚠

This required slight modifications to common_chat_apply_template in order to support passing a JSON array tools_json_arr which defaults to an empty string. It seemed the minimally invasive approach.

This doesn't work yet needs the brains added... Trying to figure out how this all works in the server code if anyone has tips please feel free to chime in!😅

Tasks:

  • Add a --tool-choice option which defaults to "auto" (see this ref)
  • Copy remaining logic from oaicompat_completion_params_parse in utils.hpp into common_chat_apply_template (common.cpp).
  • Some other grammar changes in the main.cpp algorithm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant