You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type "Literal['system']" cannot be assigned to parameter "role" of type "Literal['assistant']" in function "__init__"
│ │ "Literal['system']" is not assignable to type "Literal['assistant']" Pyright (reportArgumentType) [180, 31]
For doing
Message(role="system", content="foo")
Because __init__(role: Literal['assistant'], ...) vs Message.role: Literal['assistant', 'system', ...]
The text was updated successfully, but these errors were encountered:
litellm/litellm/types/utils.py
Line 443 in 07c5f13
I'm getting
For doing
Message(role="system", content="foo")
Because
__init__(role: Literal['assistant'], ...)
vsMessage.role: Literal['assistant', 'system', ...]
The text was updated successfully, but these errors were encountered: