|
|
@ -631,7 +631,7 @@ class ChatApiService(private val context: android.content.Context? = null) : Cor |
|
|
} |
|
|
} |
|
|
// 调用MCP工具 |
|
|
// 调用MCP工具 |
|
|
val toolResult = try { |
|
|
val toolResult = try { |
|
|
withTimeout(10000) { // 100秒超时 |
|
|
withTimeout(20000) { // 100秒超时 |
|
|
// 再次检查会话状态 |
|
|
// 再次检查会话状态 |
|
|
if (sessionid != currSessionId) { |
|
|
if (sessionid != currSessionId) { |
|
|
throw CancellationException("Session cancelled") |
|
|
throw CancellationException("Session cancelled") |
|
|
|