Releases: Moguifeng-9119/aperture
Releases · Moguifeng-9119/aperture
v1.0.0 — 精简版,3 文件核心
v1.0.0 — 从 47 文件砍到 3 文件
旧版 v0.8.0 代码见 tag v0.8.0-archived。
删掉的功能
Dashboard、Admin API、Analytics (SQLite)、Setup Wizard、Tracing/Observability、Pipeline、ML 路由 (embedding)、A/B Test、Helm/K8s 部署、Docker Compose、9 个 Provider 精简到按需配置。
保留的功能
- 协议翻译: Anthropic Messages API ↔ OpenAI Chat Completions (含 SSE 流)
- 关键词路由: 根据用户消息关键词匹配 → 选便宜/贵模型
3 个源文件
| 文件 | 行数 | 作用 |
|---|---|---|
main.go |
127 | 入口、配置加载、路由注册 |
proxy.go |
220 | Anthropic ↔ OpenAI 格式互转 |
router.go |
67 | 关键词匹配 → 选 provider+model |
使用
cp config.example.yaml config.yaml
# 填入 API key
go run . --config config.yamlClaude Code settings.json: "ANTHROPIC_BASE_URL": "http://localhost:8080"
v0.8.0-archived
Changelog
- d38dfae chore: add start.bat for one-click launch on Windows
- bf29c35 feat: Anthropic Messages API endpoint for Claude Code integration
- a346ecd feat: add issue templates (bug/feature), enable discussions, community section
- 277c44e feat: context-aware routing — tool calls boost complexity
- 87cb5f4 fix: Anthropic proxy now records tokens to DB for dashboard display
- 5713d57 fix: Anthropic proxy now routes only without double API call
- ebabd18 fix: always route Anthropic requests regardless of Claude Code model setting
- 6daae64 fix: calculate cost for Anthropic proxy requests from model pricing
- 7b49862 fix: dashboard HTMX requests missing X-Admin-Key header
- e2d221b fix: deployment bugs found during local deployment
- 4d943e3 fix: extract tokens from SSE stream (message_start + message_delta events)
- b168ba9 fix: remove admin key input from dashboard UI
- 840c357 fix: remove dashboard admin key requirement, open access
- 144fb99 fix: remove latency from dashboard, SSE stream token extraction, cost calculation for Anthropic path
- 92924c9 fix: remove leftover latency format placeholder causing Sprintf type error
- 6c68607 fix: support both string and array Anthropic content formats in /v1/messages
v0.8.0
Changelog
- d38dfae chore: add start.bat for one-click launch on Windows
- bf29c35 feat: Anthropic Messages API endpoint for Claude Code integration
- a346ecd feat: add issue templates (bug/feature), enable discussions, community section
- 277c44e feat: context-aware routing — tool calls boost complexity
- 87cb5f4 fix: Anthropic proxy now records tokens to DB for dashboard display
- 5713d57 fix: Anthropic proxy now routes only without double API call
- ebabd18 fix: always route Anthropic requests regardless of Claude Code model setting
- 6daae64 fix: calculate cost for Anthropic proxy requests from model pricing
- 7b49862 fix: dashboard HTMX requests missing X-Admin-Key header
- e2d221b fix: deployment bugs found during local deployment
- 4d943e3 fix: extract tokens from SSE stream (message_start + message_delta events)
- b168ba9 fix: remove admin key input from dashboard UI
- 840c357 fix: remove dashboard admin key requirement, open access
- 144fb99 fix: remove latency from dashboard, SSE stream token extraction, cost calculation for Anthropic path
- 92924c9 fix: remove leftover latency format placeholder causing Sprintf type error
- 6c68607 fix: support both string and array Anthropic content formats in /v1/messages
v0.7.3
v0.7.2
v0.7.1
v0.6.0
v0.5.0
Changelog
- 0d0753c feat: initial release of Aperture - intelligent multi-model LLM routing gateway
- b5e8f57 feat: production readiness — fallback chain, retry, cost wiring, new roadmap
- e561051 feat: rate limiter, docker-compose, groq+ollama tests
- 1f71a64 feat: v0.5 — real embeddings, training export, A/B testing
- b073e30 fix: prevent Go toolchain auto-download in CI
- b3fea7a fix: resolve CI lint failure
- 86cb4ea fix: resolve critical bugs from code review
- 1e5b494 fix: simplify CI test to avoid toolchain covdata error
- 1feecba fix: use Go 1.25 in CI to match modernc.org/libc requirement