Browse Source

fix: 将errorText从常量改为变量以支持错误信息更新

newdev_shunjiawei
lxm 1 year ago
parent
commit
c3cd1db303
  1. 2
      local_plugins/chat_api/android/src/main/kotlin/com/yunqiinnovation/chat_api/ChatApiService.kt

2
local_plugins/chat_api/android/src/main/kotlin/com/yunqiinnovation/chat_api/ChatApiService.kt

@ -589,7 +589,7 @@ class ChatApiService(private val context: android.content.Context? = null) : Cor
val functionName = firstToolCall.name
val argumentsJson = firstToolCall.arguments
var isError = false
val errorText = ""
var errorText = ""
val result = if (_mcpClient?.hasToolWithName(functionName) == true) {
// 解析参数,如果参数为空JSON对象,使用空Map
val arguments = if (argumentsJson == "{}") {

Loading…
Cancel
Save