Skip to content

chore: function calling cleanup #2195

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
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

chore: function calling cleanup #2195

wants to merge 3 commits into from

Conversation

vansangpfiev
Copy link
Contributor

Describe Your Changes

llama-server has already supported tool_calls

This pull request includes significant changes to the docs and engine directories, focusing on updating the function calling format and removing unused utility functions. The most important changes include updating the function call instructions in the documentation, removing preprocessing and postprocessing function calls, and adding a new parameter in the local engine.

Documentation updates:

Codebase simplification:

Enhancements:

Fixes Issues

  • Closes #
  • Closes #

Self Checklist

  • Added relevant comments, esp in complex areas
  • Updated docs (for bug fixes / features)
  • Created issues for follow-up changes or refactoring needed

Copy link
Contributor

github-actions bot commented Apr 4, 2025

Preview URL: https://848dd1bb.cortex-docs.pages.dev

Copy link
Contributor

@nguyenhoangthuan99 nguyenhoangthuan99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

// deal with out of range numeric values
std::optional<int> numeric_value = GetNumericValue(selection);
if (!numeric_value.has_value() ||(unsigned) numeric_value.value() > options.size() || numeric_value.value() < 1) {
if (!numeric_value.has_value() ||

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break this down into individiual booleans and then compare them.
Like
const bool has_value = !numeric_value.has_value() etc

Copy link

@selim1903 selim1903 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments

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.

4 participants