Skip to main content

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

  1. From your OpenAI account get your API key.
    https://platform.openai.com/account/api-keys
  2. Go to Chatbot Settings > OpenAI and paste your API key.
  3. Click Activate button.

Gemini

  1. From your Google account get your API key.
    https://aistudio.google.com/app/apikey
  2. Go to Chatbot Settings > Gemini and paste your API key.
  3. Click Activate button.

Ollama

  1. Make sure you have Ollama installed and running.
    Download Ollama here: https://ollama.com
  1. Download Models.
    Choose models here : https://ollama.com/library

  2. Configure Ollama server to make sure it allows connection from grafychat.

  3. 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.

  1. Run the following command:
launchctl setenv OLLAMA_HOST "0.0.0.0"
launchctl setenv OLLAMA_ORIGINS "*"
  1. Restart Ollama application.

Linux

  1. Edit the systemd service by calling systemctl edit ollama.service. This will open an editor.

  2. Add the following under section [Service]:

[Service]Environment="OLLAMA_HOST=0.0.0.0
[Service]Environment="OLLAMA_ORIGINS=*
  1. Save and exit.
  2. Reload systemd and restart Ollama:
systemctl daemon-reload
systemctl restart ollama

Windows

On windows, Ollama inherits your user and system environment variables.

  1. First Quit Ollama by clicking on it in the task bar
  2. Edit system environment variables from the control panel
  3. Edit or create New variable(s) for your user account for OLLAMA_HOST, OLLAMA_ORIGINS
OLLAMA_HOST=0.0.0.0"
OLLAMA_ORIGINS=*"
  1. Click OK/Apply to save
  2. 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