[PR #172] [MERGED] schemas.py fix to support image input with latest open WebUI version #338

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

📋 Pull Request Information

Original PR: https://github.com/open-webui/pipelines/pull/172
Author: @Wenlin88
Created: 7/23/2024
Status: Merged
Merged: 10/19/2024
Merged by: @tjbck

Base: mainHead: schemas.py-fix


📝 Commits (1)

  • 2da26de schemas.py fix to support image input with latest open webui version

📊 Changes

1 file changed (+5 additions, -14 deletions)

View changed files

📝 schemas.py (+5 -14)

📄 Description

With latest Open WebUI version it is not any more needed to split content to image and text content:

class ImageContent(BaseModel):
    type: str
    image_url: dict

class TextContent(BaseModel):
    type: str
    text: str

Old implementation can be again used. Tested with Azure OpenAI service GPT-4o model.


🔄 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/172 **Author:** [@Wenlin88](https://github.com/Wenlin88) **Created:** 7/23/2024 **Status:** ✅ Merged **Merged:** 10/19/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `schemas.py-fix` --- ### 📝 Commits (1) - [`2da26de`](https://github.com/open-webui/pipelines/commit/2da26dea4a0bb470554ec822ae023238f8736dcd) schemas.py fix to support image input with latest open webui version ### 📊 Changes **1 file changed** (+5 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `schemas.py` (+5 -14) </details> ### 📄 Description With latest Open WebUI version it is not any more needed to split content to image and text content: ``` python class ImageContent(BaseModel): type: str image_url: dict class TextContent(BaseModel): type: str text: str ``` Old implementation can be again used. Tested with Azure OpenAI service GPT-4o model. --- <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:09 -05:00
yindo closed this issue 2026-02-15 20:15:09 -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#338