Skip to content

Commit

Permalink
fix(connection): rest result before flow start
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Apr 8, 2024
1 parent 85d88a2 commit c4718a3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/kotlin/cc/unitmesh/devti/settings/TestConnection.kt
Expand Up @@ -14,9 +14,9 @@ fun Panel.testLLMConnection(project: Project?) {
// test result
val result = JLabel("")
button("Test LLM Connection") {
if (project == null) {
return@button
}
if (project == null) return@button
result.text = ""

// test custom engine
LLMCoroutineScope.scope(project).launch {
try {
Expand Down

0 comments on commit c4718a3

Please sign in to comment.