mirror of
https://github.com/open-webui/pipelines.git
synced 2026-07-21 10:05:26 -04:00
[PR #210] [MERGED] Fix: Get LiteLLM Models #348
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/pipelines/pull/210
Author: @justinh-rahb
Created: 8/2/2024
Status: ✅ Merged
Merged: 8/2/2024
Merged by: @tjbck
Base:
main← Head:litellm-fix📝 Commits (2)
ef88564Fix: get LiteLLM models on init316c547Fix: get LiteLLM models on startup📊 Changes
1 file changed (+7 additions, -3 deletions)
View changed files
📝
examples/pipelines/providers/litellm_manifold_pipeline.py(+7 -3)📄 Description
Fix: Populate LiteLLM Manifold Model List on Initialization
This PR addresses an issue where the LiteLLM Manifold pipeline wasn't fetching the model list on startup, causing the pipelines list to remain empty until the valves were manually saved.
The solution is to call the
get_litellm_models()function within the__init__method of thePipelineclass. This ensures that the model list is retrieved from the LiteLLM server as soon as the pipeline is initialized.Key Changes:
get_litellm_models()within the__init__method.get_litellm_models()to provide more informative messages.LITELLM_BASE_URLis not set.Benefits:
Addresses:
Acknowledgement:
@attilaszasz for the same fix from the Gemini manifold (#193) applied here.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.