Skip to content

mishl-dev/blitz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blitz

Lightweight HTTP proxy for chatjimmy.ai with OpenAI-compatible API.

Quick Start

docker-compose up -d
# Server runs on http://localhost:3000

API

Method Endpoint Description
GET /health Health check
GET /v1/models List models
POST /v1/chat/completions Chat (supports stream: true for SSE)
curl -X POST http://localhost:3000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"llama3.1-8B","messages":[{"role":"system","content":"You are a pirate"},{"role":"user","content":"Hi"}]}'

Features

  • OpenAI-compatible API
  • System prompt (first system message)
  • SSE streaming (stream: true)
  • Distroless Docker image (~20MB)

Config

Env Default
RUST_LOG info
BIND_ADDR 0.0.0.0:3000

License

MIT

About

Lightweight HTTP proxy for chatjimmy.ai with OpenAI-compatible API

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors