HelgeSverre / ollama-gui

A Web Interface for chatting with your local LLMs via the ollama API
https://ollama-gui.vercel.app/
MIT License
515 stars 84 forks source link

Changing the API URL has no effect #11

Closed tmfksoft closed 9 months ago

tmfksoft commented 9 months ago

When changing the API URL the settings are updated in localStorage but don't affect the chat client.

The API_BASE_URL appears to be hardcoded in src/services/api.ts

Jerry rigging it to const API_BASE_URL = baseUrl.value || 'http://localhost:11434/api';

Allows it to work but I'm not familiar enough with Vue to know if this is the right way to do it. If it is, I'm willing to PR it.

HelgeSverre commented 9 months ago

Will look into this soon.

HelgeSverre commented 9 months ago

✅ Should be fixed now.

Pull down the latest version (git checkout main && git pull && yarn && yarn dev in the ollama-gui folder), or use the web version by whitelisting the origin when starting ollama serve:

OLLAMA_ORIGINS=https://ollama-gui.vercel.app ollama serve