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>
56 lines
1.7 KiB
Swift
56 lines
1.7 KiB
Swift
// swift-tools-version: 6.2
|
|
import PackageDescription
|
|
|
|
let package = Package(
|
|
name: "swabble",
|
|
platforms: [
|
|
.macOS(.v15),
|
|
.iOS(.v17),
|
|
],
|
|
products: [
|
|
.library(name: "Swabble", targets: ["Swabble"]),
|
|
.library(name: "SwabbleKit", targets: ["SwabbleKit"]),
|
|
.executable(name: "swabble", targets: ["SwabbleCLI"]),
|
|
],
|
|
dependencies: [
|
|
.package(url: "https://github.com/steipete/Commander.git", exact: "0.2.1"),
|
|
.package(url: "https://github.com/apple/swift-testing", from: "0.99.0"),
|
|
],
|
|
targets: [
|
|
.target(
|
|
name: "Swabble",
|
|
path: "Sources/SwabbleCore",
|
|
swiftSettings: []),
|
|
.target(
|
|
name: "SwabbleKit",
|
|
path: "Sources/SwabbleKit",
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
]),
|
|
.executableTarget(
|
|
name: "SwabbleCLI",
|
|
dependencies: [
|
|
"Swabble",
|
|
"SwabbleKit",
|
|
.product(name: "Commander", package: "Commander"),
|
|
],
|
|
path: "Sources/swabble"),
|
|
.testTarget(
|
|
name: "SwabbleKitTests",
|
|
dependencies: [
|
|
"SwabbleKit",
|
|
.product(name: "Testing", package: "swift-testing"),
|
|
],
|
|
swiftSettings: [
|
|
.enableUpcomingFeature("StrictConcurrency"),
|
|
.enableExperimentalFeature("SwiftTesting"),
|
|
]),
|
|
.testTarget(
|
|
name: "swabbleTests",
|
|
dependencies: [
|
|
"Swabble",
|
|
.product(name: "Testing", package: "swift-testing"),
|
|
]),
|
|
],
|
|
swiftLanguageModes: [.v6])
|