mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-24 10:14:26 +00:00
Added "developer" role from https://platform.openai.com/docs/api-reference/chat
This commit is contained in:
parent
54c230a5ea
commit
ce2d1d4bb1
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue