Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

schemas.py fix to support image input with latest open WebUI version #172

Merged
merged 1 commit into from
Oct 19, 2024

Conversation

Wenlin88
Copy link
Contributor

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.

@justinh-rahb justinh-rahb requested a review from tjbck August 2, 2024 14:13
@tjbck tjbck merged commit 52ffa64 into open-webui:main Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants