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>
58 lines
1.8 KiB
Swift
58 lines
1.8 KiB
Swift
// swift-tools-version: 6.2
|
|
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "ClawdbotKit",
|
|
platforms: [
|
|
.iOS(.v18),
|
|
.macOS(.v15),
|
|
],
|
|
products: [
|
|
.library(name: "ClawdbotProtocol", targets: ["ClawdbotProtocol"]),
|
|
.library(name: "ClawdbotKit", targets: ["ClawdbotKit"]),
|
|
.library(name: "ClawdbotChatUI", targets: ["ClawdbotChatUI"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/steipete/ElevenLabsKit", exact: "0.1.0"),
|
|
.package(url: "https://github.com/gonzalezreal/textual", exact: "0.2.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "ClawdbotProtocol",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "ClawdbotKit",
|
|
dependencies: [
|
|
"ClawdbotProtocol",
|
|
.product(name: "ElevenLabsKit", package: "ElevenLabsKit"),
|
|
],
|
|
resources: [
|
|
.process("Resources"),
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.target(
|
|
name: "ClawdbotChatUI",
|
|
dependencies: [
|
|
"ClawdbotKit",
|
|
.product(
|
|
name: "Textual",
|
|
package: "textual",
|
|
condition: .when(platforms: [.macOS, .iOS])),
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.testTarget(
|
|
name: "ClawdbotKitTests",
|
|
dependencies: ["ClawdbotKit", "ClawdbotChatUI"],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
.enableExperimentalFeature("SwiftTesting"),
|
|
]),
|
|
])
|