fix(adaptor): enhance response handling and error logging for Claude format

This commit is contained in:
CaIon committed 2025-07-23 20:59:56 +08:00
1 parent c73b5886b9
commit 6ddeab2f2f
5 files changed
+64 -29

No files matched your search

+6
View File
@@ -234,6 +234,12 @@ func StreamScannerHandler(c *gin.Context, resp *http.Response, info *relaycommon
case <-stopChan:
return
}
} else {
// done, 处理完成标志,直接退出停止读取剩余数据防止出错
if common.DebugEnabled {
println("received [DONE], stopping scanner")
}
return
}
}