mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #2205] Support for HuggingFace TGI #51460
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 @kengz on GitHub (May 12, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/2205
Is your feature request related to a problem? Please describe.
Existing OpenAI API Endpoints config doesn't work for HuggingFace TGI. TGI serves one model at a time, but has no
/modelsendpoint (see TGI API doc here) that WebUI requires - also it doesn't care what "model" is passed in request param. As a result, configuring with TGI fails.Describe the solution you'd like
Current config uses
OPENAI_API_BASE_URLS, OPENAI_API_KEYS, but for TGI, it needs to explicitly specify which URL maps to which model, e.g.Llama3 -> http://llama3.tgi.my-example.com/v1,Gemma -> http://gemma.tgi.my-example.com/v1, etc.@cheahjs commented on GitHub (May 12, 2024):
Open WebUI includes LiteLLM as a proxy between various LLM providers and an OpenAI-compatible endpoint. You can add a TGI endpoint to LiteLLM via the UI.