dots-hyprland icon indicating copy to clipboard operation
dots-hyprland copied to clipboard

How to add Ollama api key?

Open LotEep opened this issue 8 months ago • 6 comments

I wand to use the AI API features with ollama, but I don't know how to get the correct API key for it. I'm locally hosting ollama, so I could just use the regular ollama interface in the terminal, but i want it to be accessible with the AI tab thing that these dots come with. I have tried using ollama serve in the terminal with the model I want to use (llama3), which I read is supposed to give me an API key, and it did give me some sort of key, but when I entered that key, using /key, after trying to send a message, I get this error: {"error":{"message":"model 'llama3:instruct' not found, try pulling it first","type":"api_error","param":null,"code":null}}

I have already pulled the model with ollama, but the key that ollama serve gave me did not work no matter how I parsed it . So does anyone know how to properly use the ollama API with the AI assistant feature? Thanks.

Basic system info: OS : Arch Linux x86_64 Kernel : Linux 6.9.5-zen1-1-zen

LotEep avatar Jun 20 '24 14:06 LotEep