Skip to content

Commit

Permalink
Update configuration.mdx (#817)
Browse files Browse the repository at this point in the history
added ollama configuration detail when running on a server
  • Loading branch information
DimitriGilbert authored Nov 4, 2024
1 parent 6d0f342 commit 6069926
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/content/docs/getting-started/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,13 @@ script({
})
```

If Ollama runs on a server or a different computer, you have to configure the `OLLAMA_API_BASE` environment variable.

```txt OLLAMA_API_BASE
OLLAMA_API_BASE=http://<IP or domain>:<port>/v1
```
As GenAIScript uses OpenAI style api, you must use the `/v1` endpoints and not `/api`.

### Llamafile

[https://llamafile.ai/](https://llamafile.ai/) is a single file desktop application
Expand Down

0 comments on commit 6069926

Please sign in to comment.