Commit 4c59fe74 authored by Steven杜宇's avatar Steven杜宇

// AI

parent 3a77a9ff
...@@ -57,6 +57,7 @@ class YHAIMainChatViewController: YHBaseViewController { ...@@ -57,6 +57,7 @@ class YHAIMainChatViewController: YHBaseViewController {
self.manager.stopChat(chatId: self.manager.chatId, conversationId: self.conversationId) { success, error in self.manager.stopChat(chatId: self.manager.chatId, conversationId: self.conversationId) { success, error in
self.bottomInputView.status = self.bottomInputView.textView.text.isEmpty ? .disableSend : .enableSend self.bottomInputView.status = self.bottomInputView.textView.text.isEmpty ? .disableSend : .enableSend
if success { if success {
self.manager.request?.cancel()
self.chatConfig.disableHandleMessage = true self.chatConfig.disableHandleMessage = true
self.chatConfig.removeThinkingMessageFromChatList(&self.messages) self.chatConfig.removeThinkingMessageFromChatList(&self.messages)
self.bottomInputView.status = self.bottomInputView.textView.text.isEmpty ? .disableSend : .enableSend self.bottomInputView.status = self.bottomInputView.textView.text.isEmpty ? .disableSend : .enableSend
......
...@@ -25,7 +25,7 @@ class YHAIRequestManager: NSObject { ...@@ -25,7 +25,7 @@ class YHAIRequestManager: NSObject {
let viewModel = YHAIViewModel() let viewModel = YHAIViewModel()
var uuid = UUID().uuidString + NSDate().timeIntervalSince1970.description var uuid = UUID().uuidString + NSDate().timeIntervalSince1970.description
var chatId = UUID().uuidString + NSDate().timeIntervalSince1970.description var chatId = ""
func getCommonHeaders() -> HTTPHeaders { func getCommonHeaders() -> HTTPHeaders {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment