File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
src/main/kotlin/cc/unitmesh/devti/counit Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,14 @@ class CustomAgentChatProcessor(val project: Project) {
54
54
55
55
CustomAgentResponseAction .Stream -> {
56
56
ui.addMessage(AutoDevBundle .message(" autodev.loading" ))
57
+ var msg = " "
57
58
LLMCoroutineScope .scope(project).launch {
58
- ui.updateMessage(response)
59
+ msg = ui.updateMessage(response)
59
60
}
61
+
62
+ llmProvider.appendLocalMessage(msg, ChatRole .Assistant )
63
+ ui.hiddenProgressBar()
64
+ ui.updateUI()
60
65
}
61
66
62
67
CustomAgentResponseAction .TextChunk -> {
@@ -75,7 +80,7 @@ class CustomAgentChatProcessor(val project: Project) {
75
80
}
76
81
77
82
CustomAgentResponseAction .Flow -> {
78
- TODO ( )
83
+ logger.error( " will not support flow response for now " )
79
84
}
80
85
81
86
CustomAgentResponseAction .WebView -> {
@@ -85,7 +90,7 @@ class CustomAgentChatProcessor(val project: Project) {
85
90
sb.append(it)
86
91
}
87
92
}
88
- // TODO: add decode support
93
+
89
94
val content = sb.toString()
90
95
llmProvider.appendLocalMessage(content, ChatRole .Assistant )
91
96
You can’t perform that action at this time.
0 commit comments