Jeffser / Alpaca

An Ollama client made with GTK4 and Adwaita
GNU General Public License v3.0
116 stars 18 forks source link

Unable to connect to ollama (installed via flatpak) #107

Open braindotai opened 1 week ago

braindotai commented 1 week ago

Describe the bug Installing Alpaca for the first time on my system... (Arch Linux). I am unable to enter the ollama server url and get a conneciton.

Screencast from 2024-06-21 18-43-48.webm

Expected behavior Dropping ollama server localhost url and alpaca gets connected to ollama.

Let me if there's any prerequisites that I am missing.

loulou64490 commented 1 week ago

Same issue

Jeffser commented 1 week ago

Hi, what does the terminal output if you launch Ollama from there? flatpak run com.jeffser.Alpaca

braindotai commented 1 week ago
Starting Alpaca's Ollama instance...
Started Alpaca's Ollama instance
[GIN] 2024/06/24 - 13:37:18 | 200 |      17.032µs |       127.0.0.1 | GET      "/"
[GIN] 2024/06/24 - 13:37:18 | 200 |      66.536µs |       127.0.0.1 | GET      "/api/tags"
[GIN] 2024/06/24 - 13:37:24 | 200 |      28.103µs |       127.0.0.1 | GET      "/"
[GIN] 2024/06/24 - 13:37:24 | 200 |      59.664µs |       127.0.0.1 | GET      "/api/tags"
[GIN] 2024/06/24 - 13:37:36 | 200 |      16.842µs |       127.0.0.1 | GET      "/"
[GIN] 2024/06/24 - 13:37:36 | 200 |      59.042µs |       127.0.0.1 | GET      "/api/tags"

(alpaca:2): Gtk-CRITICAL **: 13:37:47.309: gtk_accessible_text_get_contents: assertion 'end >= start' failed
Starting Alpaca's Ollama instance...
Started Alpaca's Ollama instance
[GIN] 2024/06/24 - 13:37:53 | 200 |      32.902µs |       127.0.0.1 | GET      "/"
[GIN] 2024/06/24 - 13:37:53 | 200 |     103.256µs |       127.0.0.1 | GET      "/api/tags"
Starting Alpaca's Ollama instance...
Started Alpaca's Ollama instance
[GIN] 2024/06/24 - 13:38:05 | 200 |      31.039µs |       127.0.0.1 | GET      "/"
[GIN] 2024/06/24 - 13:38:05 | 200 |      63.902µs |       127.0.0.1 | GET      "/api/tags"

@Jeffser