Browse Source

fix: handle document fetching from URL in Anthropic LLM model, solving base64 decoding error (#11858)

tags/0.14.2
Kalo Chin 10 months ago
parent
commit
2681bafb76
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      api/core/model_runtime/model_providers/anthropic/llm/llm.py

+ 1
- 1
api/core/model_runtime/model_providers/anthropic/llm/llm.py View File

@@ -531,7 +531,7 @@ class AnthropicLargeLanguageModel(LargeLanguageModel):
"source": {
"type": "base64",
"media_type": message_content.mime_type,
"data": message_content.data,
"data": message_content.base64_data,
},
}
sub_messages.append(sub_message_dict)

Loading…
Cancel
Save