Skip to content

Commit

Permalink
Server: support function calling (#1003)
Browse files Browse the repository at this point in the history
  • Loading branch information
madroidmaq authored Oct 2, 2024
1 parent 0866e23 commit 36c1d8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llms/mlx_lm/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,6 +594,7 @@ def handle_chat_completions(self) -> mx.array:
):
prompt = self.tokenizer.apply_chat_template(
body["messages"],
body.get("tools", None),
tokenize=True,
add_generation_prompt=True,
)
Expand Down

0 comments on commit 36c1d8e

Please sign in to comment.