mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 17:29:01 +00:00
fix contentype dicts into lists
This commit is contained in:
parent
8f9c791e21
commit
0f68852860
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ async def convert_message_to_openai_dict_new(
|
|||
raise ValueError(f"Unsupported content type: {type(content)}")
|
||||
|
||||
ret = await impl()
|
||||
if isinstance(ret, str) or isinstance(ret, list):
|
||||
if isinstance(ret, str) or isinstance(ret, list) or isinstance(ret, dict):
|
||||
return ret
|
||||
else:
|
||||
return [ret]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue