open-webui / pipelines

Pipelines: Versatile, UI-Agnostic OpenAI-Compatible Plugin Framework
MIT License
768 stars 232 forks source link

When the pipelines service is restarted, the list of models in `open-webui` disappears. #111

Open sabretus opened 3 months ago

sabretus commented 3 months ago

Bug Report

Description

Bug Summary: When the pipelines service is restarted, the list of models in open-webui disappears.

Steps to Reproduce: Everything works fine until the pipelines container is restarted. Then all models are gone from open-webui.

Expected Behavior: Automatically reload the list of models

Actual Behavior: I have to go to settings -> pipelines -> hit SAVE to load list of models

Environment

Reproduction Details

Confirmation:

Logs and Screenshots

No errors in logs

Installation Method

Service open-webui configured with pipelines (with litellm_manifold_pipeline.py) and connected to lightllm proxy. All are running in docker containers

bannert1337 commented 3 months ago

Do you have a volume mapping for pipelines?

attilaszasz commented 2 months ago

@bannert1337, I experience the same problem. I have a volume mapping, but it's not the same as the open-webui volume. Should it be?

My volumes in docker-compose:

volumes:
  open-webui: {}
  pipelines: {}
justinh-rahb commented 2 months ago

This is likely an issue from the pipeline code in question here not implementing the correct initialization/startup logic.

attilaszasz commented 2 months ago

Yep, I fixed for the Google pipeline, the same fix should work here, but I don't use litellm to be able to test it.

justinh-rahb commented 2 months ago

@attilaszasz thanks again for that, I've applied the same in #210 to fix LiteLLM manifold. Would appreciate if someone here would test that before merging. Nevermind, we YOLO-merge :P