diff --git a/handler.go b/handler.go index 11f1f21..57da7fe 100644 --- a/handler.go +++ b/handler.go @@ -106,7 +106,8 @@ func handleChatCompletions(w http.ResponseWriter, r *http.Request) { anthropicReq := ConvertOpenAIRequest(&req) anthropicReq.Stream = true // Always stream from upstream for reliability - log.Printf("[debug] Sending to upstream %s, model=%s", config.UpstreamURL, req.Model) + reqBody, _ := json.Marshal(anthropicReq) + log.Printf("[debug] Sending to upstream %s, model=%s, body=%s", config.UpstreamURL, req.Model, string(reqBody)) // Proxy to upstream (always streaming) resp, err := proxyToUpstream(anthropicReq, apiKey, sessionID, true)