Browse Source

上传聊天导航界面

newdev_shunjiawei
liwei1dao 1 year ago
parent
commit
ef4a26e95a
  1. 10
      local_plugins/chat_api/ios/chat_api/Sources/chat_api/ChatApiService.swift

10
local_plugins/chat_api/ios/chat_api/Sources/chat_api/ChatApiService.swift

@ -520,7 +520,7 @@ private func processToolCalls(_ sessionId:String) async -> Bool {
} }
if sessionId == self.currSessionId { if sessionId == self.currSessionId {
if (firstToolCall.name != "set_user_profile_field"){ // if (firstToolCall.name != "set_user_profile_field"){
// 处理结果 // 处理结果
if (!isError){ if (!isError){
self.getSessionCallback(sessionId)?.onFunctionCallResult( self.getSessionCallback(sessionId)?.onFunctionCallResult(
@ -541,10 +541,10 @@ private func processToolCalls(_ sessionId:String) async -> Bool {
functionCall: functionCall, functionCall: functionCall,
functionResult: self.jsonToString(result) ?? "{}" functionResult: self.jsonToString(result) ?? "{}"
) )
}else{ // }else{
self.getSessionCallback(sessionId)?.onComplete(sessionId) // self.getSessionCallback(sessionId)?.onComplete(sessionId)
self.clearCurrentSession() // self.clearCurrentSession()
} // }
} }
} }
} catch { } catch {

Loading…
Cancel
Save