From ce2d1d4bb17c6e4db8a8c13d4fd031e8660c2eb4 Mon Sep 17 00:00:00 2001 From: Ryan Peach Date: Wed, 8 Jan 2025 13:34:16 -0500 Subject: [PATCH] Added "developer" role from https://platform.openai.com/docs/api-reference/chat --- litellm/types/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litellm/types/utils.py b/litellm/types/utils.py index 636d2ebda8..f7098946f7 100644 --- a/litellm/types/utils.py +++ b/litellm/types/utils.py @@ -432,7 +432,7 @@ ChatCompletionMessage(content='This is a test', role='assistant', function_call= class Message(OpenAIObject): content: Optional[str] - role: Literal["assistant", "user", "system", "tool", "function"] + role: Literal["assistant", "user", "system", "tool", "function", "developer"] tool_calls: Optional[List[ChatCompletionMessageToolCall]] function_call: Optional[FunctionCall] audio: Optional[ChatCompletionAudioResponse] = None @@ -440,7 +440,7 @@ class Message(OpenAIObject): def __init__( self, content: Optional[str] = None, - role: Literal["assistant", "user", "system", "tool", "function"] = "assistant", + role: Literal["assistant", "user", "system", "tool", "function", "developer"] = "assistant", function_call: Optional[FunctionCall] = None, tool_calls: Optional[List[ChatCompletionMessageToolCall]] = None, audio: Optional[ChatCompletionAudioResponse] = None,