mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[GH-ISSUE #40] Feature request: Add list_sources endpoint for tool server discoverability #24
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#24
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?
Originally created by @Lyhtande on GitHub (Jun 8, 2026).
Original GitHub issue: https://github.com/open-webui/oikb/issues/40
Feature Request
When oikb is used as a Tool Server in Open WebUI, the LLM has no way to discover which source names are configured. This leads to errors like:
...because the model guesses the identifier instead of knowing the correct name.
Current Behavior
The model must already know the exact
nameorkb-idfrom.oikb.yamlto usePOST /sync/{name-or-kb-id}. There is no endpoint to discover available sources programmatically.The
/healthendpoint does return source names, but the model does not automatically call it before attempting a sync.Proposed Solution
Add a
GET /sourcesendpoint that returns the list of configured source names and their kb-ids:This would allow the LLM to:
GET /sourcesto discover available sourcesPOST /sync/{name}with the correct identifierWhy This Matters
Without this, users must manually add all source names to every model's system prompt — which is fragile and hard to maintain, especially with multiple Knowledge Bases.
Alternative
If a dedicated endpoint is not preferred, the OpenAPI spec could include the available source names as an enum in the
POST /sync/{identifier}path parameter description — so the LLM learns them from the spec itself.