raymondbernard / moa-pipeline

test open-webui
2 stars 5 forks source link

Unable to get this working in docker. #1

Open arsaboo opened 1 month ago

arsaboo commented 1 month ago

I am using pipelines in docker:

  pipelines:
    container_name: pipelines
    image: ghcr.io/open-webui/pipelines:main
    depends_on:
      - open-webui
    restart: unless-stopped
    volumes:
      - /Users/asaboo/Documents/Containers/ollama_ui/pipelines:/app/pipelines      
    environment:
      - PIPELINES_URLS="https://github.com/raymondbernard/moa-pipeline/blob/main/moa_groq.py"

Whether I use the PIPELINES_URLS or upload the moa_groq.py via the UI, I cannot get this working. Here's the error that I see in my pipelines container:

No requirements found in frontmatter of ./pipelines/moa_groq.py.
INFO:     Started server process [22]
INFO:     Waiting for application startup.
WARNING:root:No Pipeline class found in moa_groq
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:9099 (Press CTRL+C to quit)
Error loading module: moa_groq
No module named 'loguru'
Derjyn commented 1 month ago

There are missing modules, loguru and groq. You'll need to pip install those.

There are actually a lot of broken things with this pipeline right now... Issues with types, such as str, API keys not being passed correctly, etc.

arsaboo commented 1 month ago

@Derjyn Shouldn't the dependencies automatically be installed if I use a docker setup? I will wait for things to settle before trying this.

Derjyn commented 1 month ago

Ah, I'm a sinner and don't use Docker. I try to minimize all the layers of complexity I can, while also keeping my finger on the pulse. That being said, yes, it should have been installed. I'd rather there wasn't the dependency on loguru (as much as I love it), and the groq dependency makes sense...

I'd say don't follow my pip install advice since you're on the docker side. loguru is a pretty popular and handy library if you do any Python programming, and other libraries may end up having that as a dependency. So if you aren't afraid to install that globally, wouldn't hurt. groq, however, leans more on the virtual environment side. I'm not versed on tapping into docker and virtual environments vs packages, otherwise I would be more helpful!

jsarsoun commented 4 weeks ago

change gorq to groq in the requirements.txt file