[PR #131] [MERGED] Fix: Google GenAI pipeline #319

Closed
opened 2026-02-15 20:15:04 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/pipelines/pull/131
Author: @justinh-rahb
Created: 6/28/2024
Status: Merged
Merged: 6/28/2024
Merged by: @tjbck

Base: mainHead: gemini-fix


📝 Commits (8)

📊 Changes

1 file changed (+82 additions, -50 deletions)

View changed files

📝 examples/pipelines/providers/google_manifold_pipeline.py (+82 -50)

📄 Description

This PR addresses a critical issue in the Google GenAI pipeline where input type mismatches were causing errors, particularly in title generation. It also improves the handling of multi-modal inputs.

Fixes:

Key changes:

  1. Modified the pipe function to ensure all inputs are properly converted to the expected string format.
  2. Improved handling of multi-modal content by extracting and combining text parts.
  3. Simplified the message structure to meet the Google GenAI API requirements.
  4. Enhanced error reporting for easier debugging.

These updates should:

  • Resolve the "text input must be of type str" error reported by users.
  • Improve compatibility with various input types, including multi-modal content.
  • Ensure more reliable operation of the Google GenAI pipeline, especially for title generation.

Testing:

  • Verified functionality with text-only inputs.
  • Tested with multi-modal inputs to ensure correct handling.
  • Checked error scenarios to confirm improved handling and reporting.

Please test thoroughly with various input types and pay special attention to title generation functionality.


🔄 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/open-webui/pipelines/pull/131 **Author:** [@justinh-rahb](https://github.com/justinh-rahb) **Created:** 6/28/2024 **Status:** ✅ Merged **Merged:** 6/28/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `gemini-fix` --- ### 📝 Commits (8) - [`48f77c5`](https://github.com/open-webui/pipelines/commit/48f77c5798e4728cf31ff1f2b293e4f294d6eb0e) Fix Gemini - [`5013298`](https://github.com/open-webui/pipelines/commit/50132989d0091f1e991d86447a97ccc9c487b32f) Bump `max_output_tokens` - [`c44217b`](https://github.com/open-webui/pipelines/commit/c44217b5b8786819d2d47007bcbfb4ee8abc8115) Add logging - [`b82d902`](https://github.com/open-webui/pipelines/commit/b82d9021857ed5218fd003be1729c5bf247c1516) Print logging - [`e9cedbf`](https://github.com/open-webui/pipelines/commit/e9cedbfca8c6057898f7d76367997d49542a4437) Fix non-streaming response - [`2021256`](https://github.com/open-webui/pipelines/commit/20212561a19de22d0b880b12526b912bfd752411) Update frontmatter - [`130e9ce`](https://github.com/open-webui/pipelines/commit/130e9cec3586295f05b2f369281ba942db266628) Refac - [`c4e2d49`](https://github.com/open-webui/pipelines/commit/c4e2d4933de66226fc8b4ecdc66f111a71d85a87) Update metadata ### 📊 Changes **1 file changed** (+82 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `examples/pipelines/providers/google_manifold_pipeline.py` (+82 -50) </details> ### 📄 Description This PR addresses a critical issue in the Google GenAI pipeline where input type mismatches were causing errors, particularly in title generation. It also improves the handling of multi-modal inputs. Fixes: - #123 Key changes: 1. Modified the `pipe` function to ensure all inputs are properly converted to the expected string format. 2. Improved handling of multi-modal content by extracting and combining text parts. 3. Simplified the message structure to meet the Google GenAI API requirements. 4. Enhanced error reporting for easier debugging. These updates should: - Resolve the "text input must be of type `str`" error reported by users. - Improve compatibility with various input types, including multi-modal content. - Ensure more reliable operation of the Google GenAI pipeline, especially for title generation. Testing: - Verified functionality with text-only inputs. - Tested with multi-modal inputs to ensure correct handling. - Checked error scenarios to confirm improved handling and reporting. Please test thoroughly with various input types and pay special attention to title generation functionality. --- <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-15 20:15:04 -05:00
yindo closed this issue 2026-02-15 20:15:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: open-webui/pipelines#319