Skip to content

Commit

Permalink
fix(types/utils.py): allow passing role for message object
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishdholakia committed Sep 10, 2024
1 parent 554c5bd commit fcbed92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litellm/types/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def __init__(
):
init_values = {
"content": content,
"role": "assistant",
"role": role or "assistant", # handle null input
"function_call": (
FunctionCall(**function_call) if function_call is not None else None
),
Expand Down

0 comments on commit fcbed92

Please sign in to comment.