Directories
¶
| Path | Synopsis |
|---|---|
|
Package adapter defines the contract every upstream provider satisfies and a registry that lets the server look adapters up by name.
|
Package adapter defines the contract every upstream provider satisfies and a registry that lets the server look adapters up by name. |
|
deepseek
Package deepseek implements the Adapter against DeepSeek's OpenAI-compatible chat-completions API.
|
Package deepseek implements the Adapter against DeepSeek's OpenAI-compatible chat-completions API. |
|
Package config loads shim configuration from a .env file and the process environment.
|
Package config loads shim configuration from a .env file and the process environment. |
|
Package launcher implements `shim run`: locate `claude`, inject the ANTHROPIC_BASE_URL + ANTHROPIC_API_KEY env vars pointing at the local shim server, and exec it with the user's args.
|
Package launcher implements `shim run`: locate `claude`, inject the ANTHROPIC_BASE_URL + ANTHROPIC_API_KEY env vars pointing at the local shim server, and exec it with the user's args. |
|
Package measure aggregates per-request measurements in memory so shim can answer the question "what are you actually doing to my traffic?" loudly, in a single JSON payload exposed at /v1/metrics.
|
Package measure aggregates per-request measurements in memory so shim can answer the question "what are you actually doing to my traffic?" loudly, in a single JSON payload exposed at /v1/metrics. |
|
Package obslog wraps log/slog with a redacting JSON handler.
|
Package obslog wraps log/slog with a redacting JSON handler. |
|
Package server wires the HTTP routes for shim's three Stage 0 endpoints and owns the per-request translation flow.
|
Package server wires the HTTP routes for shim's three Stage 0 endpoints and owns the per-request translation flow. |
|
Package translate converts Anthropic Messages API requests/responses to and from OpenAI ChatCompletions shape.
|
Package translate converts Anthropic Messages API requests/responses to and from OpenAI ChatCompletions shape. |
Click to show internal directories.
Click to hide internal directories.