mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-07 02:58:21 +00:00
nit
This commit is contained in:
parent
71c9063657
commit
23f492100d
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ def process_chat_completion_response(
|
|||
if not request.tools:
|
||||
raw_message.tool_calls = []
|
||||
raw_message.content = text_from_choice(choice)
|
||||
elif request.tools:
|
||||
else:
|
||||
# only return tool_calls if provided in the request
|
||||
new_tool_calls = []
|
||||
request_tools = {t.tool_name: t for t in request.tools}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue