mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
Add 'image_url; to both if the intent is to support it in assistant messages
This commit is contained in:
parent
d751fdc900
commit
f1080a7e30
1 changed files with 3 additions and 1 deletions
|
|
@ -794,17 +794,19 @@ ValidUserMessageContentTypes = [
|
|||
"file",
|
||||
] # used for validating user messages. Prevent users from accidentally sending anthropic messages.
|
||||
|
||||
# Assistant message content types (text, thinking, redacted_thinking)
|
||||
# Assistant message content types (text, thinking, redacted_thinking, image_url)
|
||||
ValidAssistantMessageContentTypesLiteral = Literal[
|
||||
"text",
|
||||
"thinking",
|
||||
"redacted_thinking",
|
||||
"image_url",
|
||||
]
|
||||
|
||||
ValidAssistantMessageContentTypes = [
|
||||
"text",
|
||||
"thinking",
|
||||
"redacted_thinking",
|
||||
"image_url",
|
||||
]
|
||||
|
||||
# Combined valid content types for chat completion messages
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue