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: vertex ai remote url error(Error: not enough values to unpack) (#9134)
luckylhb902024a6c941fd
diff --git a/api/core/model_runtime/model_providers/vertex_ai/llm/llm.py b/api/core/model_runtime/model_providers/vertex_ai/llm/llm.pyindex 1dd785d5454..1469de60552 100644--- a/api/core/model_runtime/model_providers/vertex_ai/llm/llm.py+++ b/api/core/model_runtime/model_providers/vertex_ai/llm/llm.py@@ -7,6 +7,7 @@ from collections.abc import Generatorfrom typing import Optional, Union, castimport google.auth.transport.requests+import requestsimport vertexai.generative_models as glmfrom anthropic import AnthropicVertex, Streamfrom anthropic.types import (@@ -653,9 +654,15 @@ class VertexAiLargeLanguageModel(LargeLanguageModel):if c.type == PromptMessageContentType.TEXT:parts.append(glm.Part.from_text(c.data))else:- metadata, data = c.data.split(",", 1)- mime_type = metadata.split(";", 1)[0].split(":")[1]- parts.append(glm.Part.from_data(mime_type=mime_type, data=data))+ message_content = cast(ImagePromptMessageContent, c)+ if not message_content.data.startswith("data:"):+ url_arr = message_content.data.split(".")+ mime_type = f"image/{url_arr[-1]}"+ parts.append(glm.Part.from_uri(mime_type=mime_type, uri=message_content.data))+ else:+ metadata, data = c.data.split(",", 1)+ mime_type = metadata.split(";", 1)[0].split(":")[1]+ parts.append(glm.Part.from_data(mime_type=mime_type, data=data))glm_content = glm.Content(role="user", parts=parts)return glm_contentelif isinstance(message, AssistantPromptMessage):