fix: add role key to satisfy AllMessageValues type contract

This commit is contained in:
voidborne-d 2026-03-17 03:06:40 +00:00
parent cd710fe919
commit e46501494f

View file

@ -91,7 +91,7 @@ def _get_content_as_str(content: Union[str, list]) -> str:
if isinstance(content, str):
return content
if isinstance(content, list):
return convert_content_list_to_str({"content": content})
return convert_content_list_to_str({"role": "user", "content": content})
return str(content)