Spaces:
Paused
Paused
add raw payload debug
Browse files- internal/handler/chat.go +2 -1
internal/handler/chat.go
CHANGED
|
@@ -644,7 +644,8 @@ func handleNonStreamResponse(w http.ResponseWriter, body io.ReadCloser, completi
|
|
| 644 |
continue
|
| 645 |
}
|
| 646 |
|
| 647 |
-
logger.LogInfo("[DEBUG-NonStream]
|
|
|
|
| 648 |
|
| 649 |
if upstreamData.Data.Phase == "done" {
|
| 650 |
break
|
|
|
|
| 644 |
continue
|
| 645 |
}
|
| 646 |
|
| 647 |
+
logger.LogInfo("[DEBUG-NonStream] RAW_PAYLOAD=%s", truncate(payload, 500))
|
| 648 |
+
logger.LogInfo("[DEBUG-NonStream] phase=%s delta_content_len=%d edit_content_len=%d", upstreamData.Data.Phase, len(upstreamData.Data.DeltaContent), len(upstreamData.Data.EditContent))
|
| 649 |
|
| 650 |
if upstreamData.Data.Phase == "done" {
|
| 651 |
break
|