We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15b75ec commit 66a355fCopy full SHA for 66a355f
core/src/main/kotlin/cc/unitmesh/devti/llm2/TokenUsageEvent.kt
@@ -1,6 +1,7 @@
1
package cc.unitmesh.devti.llm2
2
3
import cc.unitmesh.devti.llms.custom.Usage
4
+import com.intellij.openapi.application.ApplicationManager
5
import com.intellij.util.messages.Topic
6
import kotlinx.serialization.Serializable
7
@@ -33,7 +34,7 @@ interface TokenUsageListener {
33
34
* Notify all subscribers about token usage
35
*/
36
fun notify(event: TokenUsageEvent) {
- com.intellij.openapi.application.ApplicationManager.getApplication().messageBus
37
+ ApplicationManager.getApplication().messageBus
38
.syncPublisher(TOPIC)
39
.onTokenUsage(event)
40
}
0 commit comments