Skip to content

Commit 8e6affb

Browse files
committed
fix(SSE response handling): Skip logging of SSE responses
1 parent 38d23de commit 8e6affb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/cc/unitmesh/devti/llms/custom/CustomLLMProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ class CustomLLMProvider(val project: Project) : LLMProvider {
127127
if (responseFormat.isNotEmpty()) {
128128
// {"id":"cmpl-a22a0d78fcf845be98660628fe5d995b","object":"chat.completion.chunk","created":822330,"model":"moonshot-v1-8k","choices":[{"index":0,"delta":{},"finish_reason":"stop","usage":{"prompt_tokens":434,"completion_tokens":68,"total_tokens":502}}]}
129129
// in some case, the response maybe not equal to our response format, so we need to ignore it
130-
logger.info("SSE: ${sse.data}")
130+
// logger.info("SSE: ${sse.data}")
131131
val chunk: String = try {
132132
JsonPath.parse(sse!!.data)?.read(responseFormat) ?: ""
133133
} catch (e: Exception) {

0 commit comments

Comments
 (0)