mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #21257] GitHub Models: refresh fails because Open WebUI calls /inference/models (404) #58089
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 @tall27 on GitHub (Feb 8, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21257
Bug: GitHub Models endpoint uses
/catalog/models, but Open WebUI requests/inference/modelsSummary
When configuring Open WebUI with GitHub Models, model refresh fails with a network/error state because Open WebUI requests:
https://models.github.ai/inference/modelsThat path returns 404 for GitHub Models, while model catalog is exposed via:
https://models.github.ai/catalog/modelsAs a result, external models are not listed in UI even though chat inference endpoint is valid.
Environment
ghcr.io/open-webui/open-webui:main(as of 2026-02-07)https://models.github.ai/inferenceSteps to Reproduce
Admin -> Connectionsin Open WebUI.https://models.github.ai/inferenceActual Result
Model refresh fails and Open WebUI logs show attempts to fetch
/inference/modelsand then 404/content-type parsing errors.Example log excerpt:
Expected Result
Open WebUI should be able to list GitHub Models and use them without needing a custom proxy.
Suggested Fix
Detect GitHub Models base (
models.github.ai) and use:GET /catalog/modelsPOST /inference/chat/completionsPOST /inference/embeddingsOr allow provider-specific mapping for model-list and inference routes in OpenAI-compatible connections.
Notes
Workaround currently used: local proxy that maps OpenAI-style
/v1/modelsto GitHub/catalog/models.@pr-validator-bot commented on GitHub (Feb 8, 2026):
⚠️ Missing Issue Title Prefix
@tall27, your issue title is missing a prefix (e.g.,
bug:,feat:,docs:).Please update your issue title to include one of the following prefixes:
Example:
bug: Login fails when using special characters in password@Classic298 commented on GitHub (Feb 8, 2026):
Essentially the same core question/issue as this: https://github.com/open-webui/open-webui/issues/21230
And provider-specific behaviour/code changes are not wanted.
If GitHub Models does not apply the OpenAI API schema, then they are not natively supported. Period.
If they do and just lack the /models endpoint - then good, you can still use them but the fact that they don't have a /models endpoint is not for Open WebUI to fix.
@Classic298 commented on GitHub (Feb 8, 2026):
https://docs.openwebui.com/faq#q-why-doesnt-open-webui-support-specific-providers-latest-api-eg-openai-responses-api
@Classic298 commented on GitHub (Feb 8, 2026):
Also you said in the PR and here you'd need a proxy - but not really.
The only thing that fails is the connection verification - and it fails for a reason. GitHub doesn't have the models endpoint where it should be to be OpenAI compatible. Not OpenAI compatible - so connection verification for an OpenAI compatible connection fails.
Absolutely intended and expected.
If not OpenAI compatible then the connection verification fails
Since this is the only thing that GitHub fails to implement correctly, the models themselves still work in your case, so no proxy needed.