mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #14688] feat: Remote references in OpenAPI specs for Tool Servers #32862
Reference in New Issue
Block a user
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 @flange-ipb on GitHub (Jun 5, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14688
Check Existing Issues
Problem Description
OpenAPI specifications may reference other files via $ref, in particular remote and URL references.
Online example: https://msbi.ipb-halle.de/MassBank-api/ui/openapi.yaml (permalink)
When loading this openapi.yaml I end up in the catch block at AddServerModal.svelte#L58 (this is a very unspecific error message BTW). The exception is thrown somewhere in getToolServerData.
Desired Solution you'd like
Maybe it is a good idea to look at the inner workings of the Swagger UI to find reusable code components. Swagger UI is able to lazy-load remote references, for instance open the endpoint specifications in my online example.
Alternatives Considered
No response
Additional Context
Open WebUI version: v0.6.13
@tjbck commented on GitHub (Jun 5, 2025):
PR Welcome.