mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix(anthropic): drop redundant cast when appending document block
This commit is contained in:
parent
e974ec4da8
commit
aab5a3cf91
1 changed files with 1 additions and 3 deletions
|
|
@ -2438,9 +2438,7 @@ def anthropic_messages_pt(
|
|||
anthropic_content_element=_document_content_element,
|
||||
original_content_element=m,
|
||||
)
|
||||
user_content.append(
|
||||
cast(AnthropicMessagesDocumentParam, _document_content_element)
|
||||
) # cast-ok: same union narrowing as above
|
||||
user_content.append(_document_content_element)
|
||||
continue
|
||||
# Bedrock invoke models have format: invoke/...
|
||||
# Vertex AI Anthropic also doesn't support URL sources for images
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue