Skip to content

Commit dc5d14c

Browse files
committed
chore: add log
1 parent 4d5e573 commit dc5d14c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class CustomLLMProvider(val project: Project) : LLMProvider {
8686
}, BackpressureStrategy.BUFFER)
8787

8888
try {
89+
logger.warn("Starting to stream:")
8990
return callbackFlow {
9091
withContext(Dispatchers.IO) {
9192
sseFlowable
@@ -94,6 +95,7 @@ class CustomLLMProvider(val project: Project) : LLMProvider {
9495
if (engineFormat.isNotEmpty()) {
9596
val chunk: String = JsonPath.parse(sse!!.data)?.read(engineFormat)
9697
?: throw Exception("Failed to parse chunk")
98+
logger.warn(" $chunk")
9799
trySend(chunk)
98100
} else {
99101
val result: ChatCompletionResult =

0 commit comments

Comments
 (0)