mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-20 13:18:41 +00:00
Merge branch 'main' into agent_session_unit_test
This commit is contained in:
commit
3edf413db5
27 changed files with 267 additions and 213 deletions
|
|
@ -488,8 +488,12 @@ class OpenAIResponsesImpl:
|
|||
# Convert collected chunks to complete response
|
||||
if chat_response_tool_calls:
|
||||
tool_calls = [chat_response_tool_calls[i] for i in sorted(chat_response_tool_calls.keys())]
|
||||
|
||||
# when there are tool calls, we need to clear the content
|
||||
chat_response_content = []
|
||||
else:
|
||||
tool_calls = None
|
||||
|
||||
assistant_message = OpenAIAssistantMessageParam(
|
||||
content="".join(chat_response_content),
|
||||
tool_calls=tool_calls,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue