@ -631,7 +631,7 @@ class ChatApiService(private val context: android.content.Context? = null) : Cor
}
// 调用MCP工具
val toolResult = try {
withTimeout(10000) { // 100秒超时
withTimeout(20000) { // 100秒超时
// 再次检查会话状态
if (sessionid != currSessionId) {
throw CancellationException("Session cancelled")
@ -501,7 +501,7 @@ private func processToolCalls(_ sessionId:String) async -> Bool {
} else {
// 使用8秒超时调用MCP工具
do {
let toolResult = try await withTimeout(seconds: 8.0) {
let toolResult = try await withTimeout(seconds: 20.0) {
return await client.callTool(name: firstToolCall.name, arguments: args)