proxy / api /lib /proxy.js

Commit History

feat: add Cloudflare Workers AI fallback for kimi models
3f8984a

OpenCode commited on

feat: non-streaming auto-continue, higher timeout, default max_tokens
d584275

OpenCode commited on

feat: auto-continue + keepalive for streaming
0d4ab93

dandi commited on

feat: API key stats, error capture, key states tracking
153b6dc

dandi commited on

feat: proper SSE streaming via pipe for stream:true
9816b39

dandi commited on

feat: use native https module instead of fetch for upstream
c6eddd7

dandi commited on

fix: add Content-Length header explicitly
763e1d1

dandi commited on

refactor: read body in proxy, return text directly
4e18ea2

dandi commited on

fix: use text() instead of arrayBuffer() for non-streaming
7b1f6b1

dandi commited on

fix: handle non-streaming responses with arrayBuffer
e3890dd

dandi commited on

feat: impersonate Kimchi CLI headers (User-Agent, X-Stainless-*))
e6ada1d

dandi commited on

fix: key rotation - zero delay on 402, 55 retries, handler timeout 55s
1788deb

dandi commited on

perf: reduce timeouts to fit Vercel 60s limit
4da59fb

dandi commited on

feat: add 402 to retryable statuses for credit exhaustion rotation
b3a9f32

dandi commited on

feat: key rotation on retry - rotate key per attempt
8b83ebd

dandi commited on

fix: undefined attempts var in proxy.js
ec366a5

dandi commited on

init: kimchi proxy with multi-key rotation
b65c987

dandi commited on