Server: support function calling (#1003)
This commit is contained in:
parent
0866e23a67
commit
36c1d8e8dc
|
|
@ -594,6 +594,7 @@ class APIHandler(BaseHTTPRequestHandler):
|
|||
):
|
||||
prompt = self.tokenizer.apply_chat_template(
|
||||
body["messages"],
|
||||
body.get("tools", None),
|
||||
tokenize=True,
|
||||
add_generation_prompt=True,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user