mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-06 23:08:16 +00:00
change Message init type annotation to support other roles (#11942)
This commit is contained in:
committed by
GitHub
parent
9ab7d97b85
commit
0e10ae1cf1
@@ -623,7 +623,7 @@ class Message(OpenAIObject):
|
||||
def __init__(
|
||||
self,
|
||||
content: Optional[str] = None,
|
||||
role: Literal["assistant"] = "assistant",
|
||||
role: Literal["assistant", "user", "system", "tool", "function"] = "assistant",
|
||||
function_call=None,
|
||||
tool_calls: Optional[list] = None,
|
||||
audio: Optional[ChatCompletionAudioResponse] = None,
|
||||
|
||||
Reference in New Issue
Block a user