[PR #403] [MERGED] fix(vertex_ai): Improve media content handling and message processing… #1346

Closed
opened 2026-02-16 10:22:41 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-official-plugins/pull/403
Author: @fdb02983rhy
Created: 3/8/2025
Status: Merged
Merged: 3/10/2025
Merged by: @crazywoola

Base: mainHead: fix(vertex_ai)-Improve-media-content-handling-and-message-processing-for-Vertex-AI-LLM


📝 Commits (4)

  • 4d9cb89 fix(vertex_ai): Improve media content handling and message processing for Vertex AI LLM
  • 7ec6b4d refactor(vertex_ai): Simplify media content part creation in LLM message processing
  • 71184cd Update llm.py
  • fb6df35 Update manifest.yaml

📊 Changes

2 files changed (+36 additions, -31 deletions)

View changed files

📝 models/vertex_ai/manifest.yaml (+1 -1)
📝 models/vertex_ai/models/llm/llm.py (+35 -30)

📄 Description

… for Vertex AI LLM

  • Refactored message processing to handle complex content types more robustly
  • Added a new _create_media_part method to handle various media content types
  • Simplified and improved content conversion for different message types
  • Removed unused logging import
  • Enhanced support for multi-part messages with consistent role handling

Fix https://github.com/langgenius/dify/issues/14681

Before

image

After

image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-official-plugins/pull/403 **Author:** [@fdb02983rhy](https://github.com/fdb02983rhy) **Created:** 3/8/2025 **Status:** ✅ Merged **Merged:** 3/10/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `fix(vertex_ai)-Improve-media-content-handling-and-message-processing-for-Vertex-AI-LLM` --- ### 📝 Commits (4) - [`4d9cb89`](https://github.com/langgenius/dify-official-plugins/commit/4d9cb89d866b6501292620fca23bb54662abffa4) fix(vertex_ai): Improve media content handling and message processing for Vertex AI LLM - [`7ec6b4d`](https://github.com/langgenius/dify-official-plugins/commit/7ec6b4d8b917082d0a26cfe86b43e9c0a4f93527) refactor(vertex_ai): Simplify media content part creation in LLM message processing - [`71184cd`](https://github.com/langgenius/dify-official-plugins/commit/71184cd09d41d3b25ebbc3f55f8a780bebb9434a) Update llm.py - [`fb6df35`](https://github.com/langgenius/dify-official-plugins/commit/fb6df354f62f609a15a56a4e3e7c3bc0906476a4) Update manifest.yaml ### 📊 Changes **2 files changed** (+36 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `models/vertex_ai/manifest.yaml` (+1 -1) 📝 `models/vertex_ai/models/llm/llm.py` (+35 -30) </details> ### 📄 Description … for Vertex AI LLM - Refactored message processing to handle complex content types more robustly - Added a new `_create_media_part` method to handle various media content types - Simplified and improved content conversion for different message types - Removed unused logging import - Enhanced support for multi-part messages with consistent role handling Fix https://github.com/langgenius/dify/issues/14681 # Before <img width="1376" alt="image" src="https://github.com/user-attachments/assets/d3a71ee2-bf9e-4c62-9f24-d0799a545e29" /> # After <img width="1301" alt="image" src="https://github.com/user-attachments/assets/96dc3b40-5610-498e-bad0-52a4362a31bf" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 10:22:41 -05:00
yindo closed this issue 2026-02-16 10:22:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#1346