mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-15 06:00:48 +00:00
use dict formate for OpenAI messages
This commit is contained in:
parent
ff58e9ba8a
commit
a62fcb9acd
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ from llama_stack.models.llama.datatypes import (
|
|||
ToolCall,
|
||||
)
|
||||
from llama_stack.providers.utils.inference.openai_compat import (
|
||||
convert_message_to_openai_dict_new,
|
||||
convert_message_to_openai_dict,
|
||||
convert_openai_chat_completion_stream,
|
||||
convert_tooldef_to_openai_tool,
|
||||
)
|
||||
|
@ -518,7 +518,7 @@ class ChatAgent(ShieldRunnerMixin):
|
|||
# Convert messages to OpenAI format
|
||||
openai_messages = []
|
||||
for message in input_messages:
|
||||
openai_message = await convert_message_to_openai_dict_new(message)
|
||||
openai_message = await convert_message_to_openai_dict(message)
|
||||
openai_messages.append(openai_message)
|
||||
|
||||
# Convert tool definitions to OpenAI format
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue