Commit graph

6 commits

Author SHA1 Message Date
4d2ccfdaaa fix: add claude-code-20250219 beta header to match claude-code 2026-04-15 08:19:08 +00:00
8e282db13a debug: log raw upstream events 2026-04-15 08:05:30 +00:00
42118d803e fix: add missing log import 2026-04-15 07:59:48 +00:00
02989e59b5 fix: always stream from upstream, accumulate for non-streaming clients 2026-04-15 07:55:26 +00:00
Franz Kafka
f284f8dbde Add explicit blocked headers list for security
- Define blockedHeaders map for headers that should never be forwarded
- Include Referer, Cookie, X-Forwarded-* headers
- Prevents leaking internal URLs, session data, and client IPs to upstream
- Defensive measure even though no headers are currently copied
2026-04-15 06:48:37 +00:00
Franz Kafka
8450d96e2e Implement OpenAI-to-Anthropic proxy with streaming support
- Add request/response converters (OpenAI <-> Anthropic formats)
- Implement SSE streaming conversion (Anthropic events -> OpenAI SSE)
- Add /v1/models endpoint with Claude model list
- Add /v1/chat/completions endpoint with streaming and non-streaming support
- Fix context key type matching bug (sessionIDKey)
- Configurable upstream URL via config.yaml
- Mimic claude-code CLI headers for upstream requests
2026-04-15 06:29:03 +00:00