Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Fix: https://github.com/langgenius/dify/issues/8190 (Update Model nam… (#8426)
ybalbert001b6ad7a1e06cc
diff --git a/api/core/model_runtime/model_providers/bedrock/llm/llm.py b/api/core/model_runtime/model_providers/bedrock/llm/llm.pyindex 06a86069019..77bab0c2945 100644--- a/api/core/model_runtime/model_providers/bedrock/llm/llm.py+++ b/api/core/model_runtime/model_providers/bedrock/llm/llm.py@@ -1,8 +1,8 @@# standard importimport base64-import ioimport jsonimport logging+import mimetypesfrom collections.abc import Generatorfrom typing import Optional, Union, cast@@ -17,7 +17,6 @@ from botocore.exceptions import (ServiceNotInRegionError,UnknownServiceError,)-from PIL.Image import Image# local importfrom core.model_runtime.callbacks.base_callback import Callback@@ -443,8 +442,9 @@ class BedrockLargeLanguageModel(LargeLanguageModel):try:url = message_content.dataimage_content = requests.get(url).content- with Image.open(io.BytesIO(image_content)) as img:- mime_type = f"image/{img.format.lower()}"+ if "?" in url:+ url = url.split("?")[0]+ mime_type, _ = mimetypes.guess_type(url)base64_data = base64.b64encode(image_content).decode("utf-8")except Exception as ex:raise ValueError(f"Failed to fetch image data from url {message_content.data}, {ex}")