fix(types/utils.py): message role is always 'assistant'

This commit is contained in:
Krrish Dholakia 2024-07-11 14:11:21 -07:00
parent f755cc7558
commit 52b293e831

View file

@ -305,7 +305,7 @@ class Message(OpenAIObject):
):
init_values = {
"content": content,
"role": role,
"role": "assistant",
"function_call": (
FunctionCall(**function_call) if function_call is not None else None
),