Skip to content

About

A custom pipe for Open WebUI that connects to a LiteLLM proxy, making all of its models available in the chat interface with a clean, customizable prefix.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

litellm-pipe

An Open WebUI pipe that lists every model on a LiteLLM proxy, with a prefix you choose (Lite: gpt-4o).

Install

  1. Open WebUI → Admin Panel → Functions → +, paste in litellm_pipe.py.
  2. Set the valves: LITELLM_API_BASE_URL (default http://localhost:4000) and LITELLM_API_KEY.
  3. Change the prefix with self.name in the file.

The model list is cached for CACHE_DURATION_MINUTES (default 60). Connection errors show up in the model list.

Needs pydantic and requests, both already in Open WebUI.

License

MIT

About

A custom pipe for Open WebUI that connects to a LiteLLM proxy, making all of its models available in the chat interface with a clean, customizable prefix.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages