ollamagoweb, a simple llm client built in Go that leverages Llama-compatible LLM via the ollama service. This innovative tool provides a seamless conversation experience and features:
Simple interface:
The main page displays the Ollama version, LLM tag, and context length, providing essential information for a productive conversation.
Answering Questions:
Contextual Discussion ollamagoweb effortlessly responds to questions, such as "What is TOTP?", and continues the discussion in context, allowing for a natural and engaging exchange.
Conversation Management:
For each round of dialogue, users can easily delete the dialogue by clicking the button in the upper right corner to ensure that llm's ideas are logically coherent during the dialogue.
Conversation saved:
Ollamagoweb allows users to save conversations as HTML documents for later reference, providing a convenient way to review and analyze previous discussions.
Generate Response log:
The backend server efficiently displays and calculates the session's token and speed, providing a robust foundation for the application.
Here are some screenshots.
Download various LLM models from https://www.ollama.com
git clone https://github.com/ml2068/ollamagoweb.git
cd ollamagoweb
go mod tidy
Setting the port and llm tag by edit the .env file
vim .env
PORT=1102
llm=llama3.1:8b
go run main.go
cd ollamagoweb
go build main.go
./main
- replace file from GroqGoWeb as below:
./main.go
./.env
./static/logo.png
./static/favicon.ico
- edit the .env file:
PORT=1102
llm=llama3-8b-8192
baseUrl=https://api.groq.com/openai/v1
apiKey=gsk_rmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0H
- go run
go run main.go
- api-key
Get Groq free api-key from https://www.groq.com
Get deepinfra api-key from https://deepinfra.com/
.env format:
PORT=1102
llm=meta-llama/Meta-Llama-3.1-405B-Instruct
baseUrl=https://api.deepinfra.com/v1/openai
apiKey=JZxxxxxxxxxxxxxxxxxxxxxwHrK
Get Openrouter api-key from https://openrouter.ai/
.env format:
PORT=1102
llm=meta-llama/llama-3.1-70b-instruct:free
baseUrl=https://openrouter.ai/api/v1
apiKey=sk-or-v1-ed3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx00d