Venice's API doesn't support certain OpenAI-compatible parameters that Clawdbot sends by default: - `store`: Venice returns HTTP 400 with no body when this is present - `developer` role: Not supported by Venice's API This adds VENICE_COMPAT settings (supportsStore: false, supportsDeveloperRole: false) to all Venice model definitions, both from the static catalog and dynamically discovered models. Fixes issues reported in PR #1666 where users experienced silent failures (HTTP 400, no body) when using Venice models. Co-authored-by: jonisjongithub <jonisjongithub@users.noreply.github.com> Co-authored-by: Clawdbot <bot@clawd.bot>
50 lines
1.7 KiB
Swift
50 lines
1.7 KiB
Swift
import AppKit
|
|
|
|
#if DEBUG
|
|
@MainActor
|
|
extension VoiceWakeOverlayController {
|
|
static func exerciseForTesting() async {
|
|
let controller = VoiceWakeOverlayController(enableUI: false)
|
|
let token = controller.startSession(
|
|
source: .wakeWord,
|
|
transcript: "Hello",
|
|
attributed: nil,
|
|
forwardEnabled: true,
|
|
isFinal: false)
|
|
|
|
controller.updatePartial(token: token, transcript: "Hello world")
|
|
controller.presentFinal(token: token, transcript: "Final", autoSendAfter: nil)
|
|
controller.userBeganEditing()
|
|
controller.endEditing()
|
|
controller.updateText("Edited text")
|
|
|
|
_ = controller.makeAttributed(from: "Attributed")
|
|
_ = controller.targetFrame()
|
|
_ = controller.measuredHeight()
|
|
_ = controller.dismissTargetFrame(
|
|
for: NSRect(x: 0, y: 0, width: 120, height: 60),
|
|
reason: .empty,
|
|
outcome: .empty)
|
|
_ = controller.dismissTargetFrame(
|
|
for: NSRect(x: 0, y: 0, width: 120, height: 60),
|
|
reason: .explicit,
|
|
outcome: .sent)
|
|
_ = controller.dismissTargetFrame(
|
|
for: NSRect(x: 0, y: 0, width: 120, height: 60),
|
|
reason: .explicit,
|
|
outcome: .empty)
|
|
|
|
controller.beginSendUI(token: token, sendChime: .none)
|
|
try? await Task.sleep(nanoseconds: 350_000_000)
|
|
|
|
controller.scheduleAutoSend(token: token, after: 10)
|
|
controller.autoSendTask?.cancel()
|
|
controller.autoSendTask = nil
|
|
controller.autoSendToken = nil
|
|
|
|
controller.dismiss(token: token, reason: .explicit, outcome: .sent)
|
|
controller.bringToFrontIfVisible()
|
|
}
|
|
}
|
|
#endif
|