From 35878c0a923bfa474d22981d48b0503f100e92e1 Mon Sep 17 00:00:00 2001 From: ashisgreat22 Date: Wed, 15 Apr 2026 08:21:24 +0000 Subject: [PATCH] debug: log request body --- handler.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)