Skip to content

ml2068/ollamagoweb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

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.

ollamagoweb main page

What is TOTP?

backend log

Models

Download various LLM models from https://www.ollama.com

Git Clone

git clone https://github.com/ml2068/ollamagoweb.git
cd ollamagoweb
go mod tidy

edit .env

Setting the port and llm tag by edit the .env file

vim .env
PORT=1102
llm=llama3.1:8b

run the servcie

go run main.go

build the .exe

cd ollamagoweb
go build main.go
./main

Groq support

Groq go fast

  1. replace file from GroqGoWeb as below:
./main.go
./.env
./static/logo.png
./static/favicon.ico
  1. edit the .env file:
PORT=1102
llm=llama3-8b-8192
baseUrl=https://api.groq.com/openai/v1
apiKey=gsk_rmxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0H
  1. go run

go run main.go

  1. api-key

Get Groq free api-key from https://www.groq.com

deepinfra support

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

Openrouter support

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

Star History

Star History Chart