fix: align ios lint and android build
This commit is contained in:
@@ -31,12 +31,12 @@ struct StatusPill: View {
|
||||
struct Activity: Equatable {
|
||||
var title: String
|
||||
var systemImage: String
|
||||
var tint: Color? = nil
|
||||
var tint: Color?
|
||||
}
|
||||
|
||||
var bridge: BridgeState
|
||||
var voiceWakeEnabled: Bool
|
||||
var activity: Activity? = nil
|
||||
var activity: Activity?
|
||||
var brighten: Bool = false
|
||||
var onTap: () -> Void
|
||||
|
||||
|
||||
@@ -233,7 +233,7 @@ final class TalkModeManager: NSObject {
|
||||
"sessionKey": "main",
|
||||
"message": message,
|
||||
"thinking": "low",
|
||||
"timeoutMs": 30_000,
|
||||
"timeoutMs": 30000,
|
||||
"idempotencyKey": UUID().uuidString,
|
||||
]
|
||||
let data = try JSONSerialization.data(withJSONObject: payload)
|
||||
@@ -260,7 +260,10 @@ final class TalkModeManager: NSObject {
|
||||
}
|
||||
|
||||
private func fetchLatestAssistantText(bridge: BridgeSession) async throws -> String? {
|
||||
let res = try await bridge.request(method: "chat.history", paramsJSON: "{\"sessionKey\":\"main\"}", timeoutSeconds: 15)
|
||||
let res = try await bridge.request(
|
||||
method: "chat.history",
|
||||
paramsJSON: "{\"sessionKey\":\"main\"}",
|
||||
timeoutSeconds: 15)
|
||||
guard let json = try JSONSerialization.jsonObject(with: res) as? [String: Any] else { return nil }
|
||||
guard let messages = json["messages"] as? [[String: Any]] else { return nil }
|
||||
for msg in messages.reversed() {
|
||||
@@ -499,7 +502,7 @@ private enum TalkModeRuntime {
|
||||
|
||||
static func validatedSeed(_ value: Int?) -> UInt32? {
|
||||
guard let value else { return nil }
|
||||
if value < 0 || value > 4294967295 { return nil }
|
||||
if value < 0 || value > 4_294_967_295 { return nil }
|
||||
return UInt32(value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user