mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-15 14:38:19 +08:00
fix: handle document fetching from URL in Anthropic LLM model, solving base64 decoding error (#11858)
This commit is contained in:
parent
ac635c70cd
commit
2681bafb76
@ -531,7 +531,7 @@ class AnthropicLargeLanguageModel(LargeLanguageModel):
|
|||||||
"source": {
|
"source": {
|
||||||
"type": "base64",
|
"type": "base64",
|
||||||
"media_type": message_content.mime_type,
|
"media_type": message_content.mime_type,
|
||||||
"data": message_content.data,
|
"data": message_content.base64_data,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
sub_messages.append(sub_message_dict)
|
sub_messages.append(sub_message_dict)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user