plandex-ai / plandex

AI driven development in your terminal. Designed for large, real-world tasks.
https://plandex.ai
GNU Affero General Public License v3.0
10.65k stars 740 forks source link

Error when pointing open ai base url at Ollama. Won’t list Ollama models #125

Closed atljoseph closed 4 months ago

atljoseph commented 4 months ago

Running with docker compose with start local script. Am all logged in. The env vars are applied to both cli and docker env. Wasn’t really clear from the docs how to debug this. Is there a debug mode? Haven’t delved into the code just yet. Was trying to go by what the docs said.

IMG_1791 IMG_1790

Was finally able to get it to NOT refuse connection with Ollama, but this came thereafter. Completely blocked from using this beautiful code product.

atljoseph commented 4 months ago

This seems to come from an incorrectly configured environment setup in the docker compose file. The database service loads the ENV file but the server never loads the ENV file. Why is that? Why would it be written like that? Wastes hours of peoples time. this is supposed to save time, right?

danenania commented 4 months ago

Hey @atljoseph, this was recently updated by a contributor to enable the start_local.sh script, so there certainly could be some kinks to work out. It looks like we need env-file specified for the plandex-server service as well so that those vars are passed through.

danenania commented 4 months ago

@atljoseph env-file is now included in the plandex-server service, so those vars will now get passed through to the server.