mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/oikb/pull/90
Author: @plevart
Created: 7/31/2026
Status: ✅ Merged
Merged: 9/16/2026
Merged by: @tjbck
Base:
main← Head:fix/validate-deep-file-count📝 Commits (1)
9b97a3afix: read KB files from /knowledge/{id}/files endpoint (#89)📊 Changes
2 files changed (+16 additions, -5 deletions)
View changed files
📝
src/oikb/cli.py(+2 -2)📝
src/oikb/client.py(+14 -3)📄 Description
validate --deep,status, andlsderived the KB file list fromGET /knowledge/{id}, whosefilesfield is a server-hydrated convenience that Open WebUI version 0.11.0 returns as null. Readinglen(kb.get("files", []))then crashed with "object of type 'NoneType' has no len()" because .get()'s default only applies to a missing key, not an explicit null.lssilently printed "(empty)" for the same reason. Sync was unaffected as it uses the server-side /sync/diff endpoint.Point the file listing at the real
GET /knowledge/{id}/filesendpoint (returns {items, total}): fix list_kb_files, add count_kb_files for the authoritative total, and use them in the affected commands.Fixes #89
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.