Original PR: https://github.com/open-webui/open-webui/pull/20098 Author: @majiayu000 Created: 12/22/2025 Status: ❌ Closed
Base: main ← Head: fix/filemodel-validation-14220
main
fix/filemodel-validation-14220
d16bff4
3 files changed (+100 additions, -3 deletions)
📝 backend/open_webui/models/knowledge.py (+11 -3) ➕ backend/open_webui/test/models/__init__.py (+0 -0) ➕ backend/open_webui/test/models/test_knowledge.py (+89 -0)
backend/open_webui/models/knowledge.py
backend/open_webui/test/models/__init__.py
backend/open_webui/test/models/test_knowledge.py
model_dump()
get_file_metadatas_by_id
Fixes #14220
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
No dependencies set.
The note is not visible to the blocked user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20098
Author: @majiayu000
Created: 12/22/2025
Status: ❌ Closed
Base:
main← Head:fix/filemodel-validation-14220📝 Commits (1)
d16bff4fix: correct FileModel to FileMetadataResponse conversion📊 Changes
3 files changed (+100 additions, -3 deletions)
View changed files
📝
backend/open_webui/models/knowledge.py(+11 -3)➕
backend/open_webui/test/models/__init__.py(+0 -0)➕
backend/open_webui/test/models/test_knowledge.py(+89 -0)📄 Description
Summary
model_dump()to convert FileModel to FileMetadataResponseget_file_metadatas_by_idFixes #14220
Test plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.