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>
48 lines
1.2 KiB
Bash
48 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
INSTALL_URL="${CLAWDBOT_INSTALL_URL:-https://clawd.bot/install.sh}"
|
|
|
|
echo "==> Pre-flight: ensure git absent"
|
|
if command -v git >/dev/null; then
|
|
echo "git is present unexpectedly" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "==> Run installer (non-root user)"
|
|
curl -fsSL "$INSTALL_URL" | bash
|
|
|
|
# Ensure PATH picks up user npm prefix
|
|
export PATH="$HOME/.npm-global/bin:$PATH"
|
|
|
|
echo "==> Verify git installed"
|
|
command -v git >/dev/null
|
|
|
|
echo "==> Verify clawdbot installed"
|
|
EXPECTED_VERSION="${CLAWDBOT_INSTALL_EXPECT_VERSION:-}"
|
|
if [[ -n "$EXPECTED_VERSION" ]]; then
|
|
LATEST_VERSION="$EXPECTED_VERSION"
|
|
else
|
|
LATEST_VERSION="$(npm view clawdbot version)"
|
|
fi
|
|
CMD_PATH="$(command -v clawdbot || true)"
|
|
if [[ -z "$CMD_PATH" && -x "$HOME/.npm-global/bin/clawdbot" ]]; then
|
|
CMD_PATH="$HOME/.npm-global/bin/clawdbot"
|
|
fi
|
|
if [[ -z "$CMD_PATH" ]]; then
|
|
echo "clawdbot not on PATH" >&2
|
|
exit 1
|
|
fi
|
|
INSTALLED_VERSION="$("$CMD_PATH" --version 2>/dev/null | head -n 1 | tr -d '\r')"
|
|
|
|
echo "installed=$INSTALLED_VERSION expected=$LATEST_VERSION"
|
|
if [[ "$INSTALLED_VERSION" != "$LATEST_VERSION" ]]; then
|
|
echo "ERROR: expected clawdbot@$LATEST_VERSION, got @$INSTALLED_VERSION" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "==> Sanity: CLI runs"
|
|
"$CMD_PATH" --help >/dev/null
|
|
|
|
echo "OK"
|