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>
32 lines
687 B
Bash
Executable File
32 lines
687 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
|
|
if [[ $# -lt 1 ]]; then
|
|
echo "usage: run-node-tool.sh <tool> [args...]" >&2
|
|
exit 2
|
|
fi
|
|
|
|
tool="$1"
|
|
shift
|
|
|
|
if [[ -f "$ROOT_DIR/pnpm-lock.yaml" ]] && command -v pnpm >/dev/null 2>&1; then
|
|
exec pnpm exec "$tool" "$@"
|
|
fi
|
|
|
|
if { [[ -f "$ROOT_DIR/bun.lockb" ]] || [[ -f "$ROOT_DIR/bun.lock" ]]; } && command -v bun >/dev/null 2>&1; then
|
|
exec bunx --bun "$tool" "$@"
|
|
fi
|
|
|
|
if command -v npm >/dev/null 2>&1; then
|
|
exec npm exec -- "$tool" "$@"
|
|
fi
|
|
|
|
if command -v npx >/dev/null 2>&1; then
|
|
exec npx "$tool" "$@"
|
|
fi
|
|
|
|
echo "Missing package manager: pnpm, bun, or npm required." >&2
|
|
exit 1
|