Skip to content

Commit

Permalink
fix: handle document fetching from URL in Anthropic LLM model, solvin…
Browse files Browse the repository at this point in the history
…g base64 decoding error (langgenius#11858)
  • Loading branch information
fdb02983rhy authored Dec 20, 2024
1 parent ac635c7 commit 2681baf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def _convert_prompt_messages(self, prompt_messages: Sequence[PromptMessage]) ->
"source": {
"type": "base64",
"media_type": message_content.mime_type,
"data": message_content.data,
"data": message_content.base64_data,
},
}
sub_messages.append(sub_message_dict)
Expand Down

0 comments on commit 2681baf

Please sign in to comment.