From 52b293e831e6fcdf6bb088198494098675606385 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Thu, 11 Jul 2024 14:11:21 -0700 Subject: [PATCH] fix(types/utils.py): message role is always 'assistant' --- litellm/types/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/types/utils.py b/litellm/types/utils.py index 2e0ae425c71..3ae9fb05662 100644 --- a/litellm/types/utils.py +++ b/litellm/types/utils.py @@ -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 ),