mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #847] [MERGED] fix/Fixed output structure error in Vertex ai #1584
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/847
Author: @mendybraun
Created: 5/4/2025
Status: ✅ Merged
Merged: 5/5/2025
Merged by: @crazywoola
Base:
main← Head:VertexAI_output_schema📝 Commits (1)
8e9b179Fixed output structure error📊 Changes
5 files changed (+213 additions, -33 deletions)
View changed files
📝
models/vertex_ai/manifest.yaml(+1 -1)➕
models/vertex_ai/models/llm/gemini-2.5-flash-preview-04-17.yaml(+44 -0)➕
models/vertex_ai/models/llm/gemini-2.5-pro-preview-03-25.yaml(+44 -0)📝
models/vertex_ai/models/llm/llm.py(+123 -31)📝
models/vertex_ai/requirements.txt(+1 -1)📄 Description
Fixed this error, which was raised when using the openai style output schema JSON (like "type": ["string", "null"]), which is not supported by Gemini.
[vertex_ai] Error: PluginInvokeError: {"args":{"description":"[models] Error: 'list' object has no attribute 'upper'"},"error_type":"InvokeError","message":"[models] Error: 'list' object has no attribute 'upper'"}Also bnd bumped up to
dify_plugin>=0.2.0,<0.3.0Related Issues or Context
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.2.0,<0.3.0in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.