mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix: add role key to satisfy AllMessageValues type contract
This commit is contained in:
parent
cd710fe919
commit
e46501494f
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue