debug: log request body
This commit is contained in:
parent
4d2ccfdaaa
commit
35878c0a92
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue