Extracted from ardenone-cluster/containers/zai-proxy and ardenone-cluster/containers/zai-proxy-dashboard. - proxy/: OpenAI-compatible ZAI reverse proxy (Go, v1.10.0) - Token counting, rate limiting, Prometheus metrics, canary support - dashboard/: Metrics dashboard backend + React frontend (Go, v1.0.0) - Prometheus collector, SQLite storage, SSE live updates - docs/: Operational notes, research, and plan subdirs Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
10 lines
350 B
Go
10 lines
350 B
Go
package main
|
|
|
|
import ()
|
|
|
|
// TranslateRequest is a no-op since Z.AI natively supports the Claude Code API.
|
|
// Previous translations (stripping thinking, flattening system arrays, removing
|
|
// cache_control) were causing 422 errors because Z.AI expects these fields.
|
|
func TranslateRequest(body []byte) ([]byte, bool, error) {
|
|
return body, false, nil
|
|
}
|