refactor: rename clawdbot to moltbot with legacy compat
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import AVFoundation
|
||||
import ClawdbotChatUI
|
||||
import ClawdbotKit
|
||||
import MoltbotChatUI
|
||||
import MoltbotKit
|
||||
import Foundation
|
||||
import OSLog
|
||||
import Speech
|
||||
@@ -416,9 +416,9 @@ actor TalkModeRuntime {
|
||||
do {
|
||||
let history = try await GatewayConnection.shared.chatHistory(sessionKey: sessionKey)
|
||||
let messages = history.messages ?? []
|
||||
let decoded: [ClawdbotChatMessage] = messages.compactMap { item in
|
||||
let decoded: [MoltbotChatMessage] = messages.compactMap { item in
|
||||
guard let data = try? JSONEncoder().encode(item) else { return nil }
|
||||
return try? JSONDecoder().decode(ClawdbotChatMessage.self, from: data)
|
||||
return try? JSONDecoder().decode(MoltbotChatMessage.self, from: data)
|
||||
}
|
||||
let assistant = decoded.last { message in
|
||||
guard message.role == "assistant" else { return false }
|
||||
|
||||
Reference in New Issue
Block a user