lalagist
is a toy Go project to interact with Ollama using Github's Gist. It allows you to interact with your Ollama instance remotely using Github's Gist's comment functionality.
- Clone repo
- Populate environmental variables within
.env
GITHUB_TOKEN=github_pat_ABCDEFGHIJKLMNOPQRSTUVWXYZ
GITHUB_GIST_ID=75eb740348be801ce17a50eb9559a386
LLM_NAME=llama
MODEL=llama3
AVATAR=https://avatars.githubusercontent.com/u/151674099?s=48&v=3
GITHUB_TOKEN
: Create GitHub token, selectAccount permissions
, Navigate to Gists Access, selectRead and Write
GITHUB_GIST_ID
: Create new gist and get the gist id. The gist id can be extracted from the URL. For example, in the URLhttps://gist.github.com/alexander-hanel/75eb740348be801ce17a50eb9559a386
the gist id is75eb740348be801ce17a50eb9559a386
LLM_NAME
is the name that lalagist should respond toMODEL
that ollama should use
- Change directory,
cd lalagist
- Build,
go run main.go
- Let run
- Ask question as a comment, the question must start with the
LLM_NAME
plus,
. For example,
llama, can you tell me circumference of the moon?
Wait a minute or so, then lalagist will respond.
If browsing on your phone, click on the time stamp of the comment and then press refresh.