Get Started
To start chatting right away, activate your preferred provider.
Deactivate and activate again if you have new features or models available from the provider.
OpenAI
- From your OpenAI account get your API key.
https://platform.openai.com/account/api-keys - Go to Chatbot Settings > OpenAI and paste your API key.
- Click Activate button.
Gemini
- From your Google account get your API key.
https://aistudio.google.com/app/apikey - Go to Chatbot Settings > Gemini and paste your API key.
- Click Activate button.
Ollama
- Make sure you have Ollama installed and running.
Download Ollama here: https://ollama.com
Download Models.
Choose models here : https://ollama.com/libraryConfigure Ollama server to make sure it allows connection from grafychat.
Click Activate button.
Configure Ollama Server
Configure Ollama server by Setting environment variables to make sure it allows connection from grafychat.
Mac
Note: Safari currently does not support CORS with Ollama. Please use Chrome or Firefox.
- Run the following command:
launchctl setenv OLLAMA_HOST "0.0.0.0"
launchctl setenv OLLAMA_ORIGINS "*"
- Restart Ollama application.
Linux
Edit the systemd service by calling
systemctl edit ollama.service
. This will open an editor.Add the following under section
[Service]
:
[Service]Environment="OLLAMA_HOST=0.0.0.0
[Service]Environment="OLLAMA_ORIGINS=*
- Save and exit.
- Reload
systemd
and restart Ollama:
systemctl daemon-reload
systemctl restart ollama
Windows
On windows, Ollama inherits your user and system environment variables.
- First Quit Ollama by clicking on it in the task bar
- Edit system environment variables from the control panel
- Edit or create New variable(s) for your user account for
OLLAMA_HOST
,OLLAMA_ORIGINS
OLLAMA_HOST=0.0.0.0"
OLLAMA_ORIGINS=*"
- Click OK/Apply to save
- Run
ollama
from a new terminal window
More info: https://github.com/ollama/ollama/blob/main/docs/faq.md#how-do-i-configure-ollama-server