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>
46 lines
1.5 KiB
JavaScript
46 lines
1.5 KiB
JavaScript
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { defineConfig } from "rolldown";
|
|
|
|
const here = path.dirname(fileURLToPath(import.meta.url));
|
|
const repoRoot = path.resolve(here, "../../../../..");
|
|
const fromHere = (p) => path.resolve(here, p);
|
|
const outputFile = path.resolve(
|
|
here,
|
|
"../../../../..",
|
|
"src",
|
|
"canvas-host",
|
|
"a2ui",
|
|
"a2ui.bundle.js",
|
|
);
|
|
|
|
const a2uiLitDist = path.resolve(repoRoot, "vendor/a2ui/renderers/lit/dist/src");
|
|
const a2uiThemeContext = path.resolve(a2uiLitDist, "0.8/ui/context/theme.js");
|
|
|
|
export default defineConfig({
|
|
input: fromHere("bootstrap.js"),
|
|
experimental: {
|
|
attachDebugInfo: "none",
|
|
},
|
|
treeshake: false,
|
|
resolve: {
|
|
alias: {
|
|
"@a2ui/lit": path.resolve(a2uiLitDist, "index.js"),
|
|
"@a2ui/lit/ui": path.resolve(a2uiLitDist, "0.8/ui/ui.js"),
|
|
"@clawdbot/a2ui-theme-context": a2uiThemeContext,
|
|
"@lit/context": path.resolve(repoRoot, "node_modules/@lit/context/index.js"),
|
|
"@lit/context/": path.resolve(repoRoot, "node_modules/@lit/context/"),
|
|
"@lit-labs/signals": path.resolve(repoRoot, "node_modules/@lit-labs/signals/index.js"),
|
|
"@lit-labs/signals/": path.resolve(repoRoot, "node_modules/@lit-labs/signals/"),
|
|
lit: path.resolve(repoRoot, "node_modules/lit/index.js"),
|
|
"lit/": path.resolve(repoRoot, "node_modules/lit/"),
|
|
},
|
|
},
|
|
output: {
|
|
file: outputFile,
|
|
format: "esm",
|
|
inlineDynamicImports: true,
|
|
sourcemap: false,
|
|
},
|
|
});
|