Skip to content

Commit c67ab41

Browse files
committed
chore: revert something..
1 parent 433fb3c commit c67ab41

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/main/kotlin/cc/unitmesh/devti/llms/azure/ResponseBodyCallback.kt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ import java.io.InputStreamReader
3535
import java.nio.charset.StandardCharsets
3636

3737
class AutoDevHttpException(error: String, val statusCode: Int) : RuntimeException(error) {
38-
override fun toString(): String {
39-
return "AutoDevHttpException(statusCode=$statusCode, message=$message)"
40-
}
4138
}
4239

4340
/**
@@ -83,11 +80,6 @@ class ResponseBodyCallback(private val emitter: FlowableEmitter<SSE>, private va
8380
null
8481
}
8582

86-
line!!.startsWith("{") -> {
87-
logger<ResponseBodyCallback>().warn("msg starts with { $line")
88-
emitter.onNext(SSE(line!!))
89-
null
90-
}
9183
else -> {
9284
throw SSEFormatException("Invalid sse format! $line")
9385
}

0 commit comments

Comments
 (0)