Skip to content

๐Ÿš‡ tunnel is single passage to any text generation backend whether hosted locally or in the cloud.

Notifications You must be signed in to change notification settings

Terminally-Online/tunnel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Tunnel

A single passage to any text generation backend.

How It Works

Requests enter the tunnel via HTTP or SMS and exit through whichever model you've configured. Your applications don't need to know what's on the other side.

Entry Points

  • HTTP API for direct integration
  • Twilio SMS for conversational interfaces

Exits

  • Local models (llama.cpp, Ollama, vLLM)
  • Self-hosted inference
  • Cloud endpoints

Models

Each model is a named configuration with its own endpoint and sampler settings. Define as many as you need:

[sms]
url = "${SMS_MODEL_URL}"
temperature = 0.9
max_tokens = 512

[analyst]
url = "${ANALYST_MODEL_URL}"
temperature = 0.3
max_tokens = 2048

Requests specify which model to use. The tunnel handles the rest.

Usage

cp config.example.toml config.toml
go build -o tunnel ./cmd/server
./tunnel

License

MIT

About

๐Ÿš‡ tunnel is single passage to any text generation backend whether hosted locally or in the cloud.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages