mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #6892] Support GitHub Models API #14522
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 @gunamata on GitHub (Nov 13, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6892
Feature Request
Support GitHub Models in Open WebUI
The GitHub Models
/modelsAPI end point returns models info in a slightly different format than what Open WebUI expects.It looks like the
idvalue provides the full path (ex:azureml://registries/azureml/models/Phi-3-small-8k-instruct/versions/3) of the model in the Azure registry where as the/chat/completionsapi requires the model's short name (ex:Phi-3-small-8k-instruct). Thenameattribute has the model short name.May be below code can be modified to handle what GitHub Models
/modelsendpoint returns. Something like,.map((model) => ({ id: model.id.find('://') > 0 ? model.name : model.id, name: model.name ?? model.id, external: true }))??https://github.com/open-webui/open-webui/blob/main/src/lib/apis/openai/index.ts#L264C3-L264C4
@tjbck commented on GitHub (Nov 13, 2024):
Should be supported on dev, testing wanted here.
@gunamata commented on GitHub (Nov 13, 2024):
@tjbck , It doesn't work when I tried with the dev image. It still complains about the full model path.