mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-09-25 19:03:59 +02:00
Add conditional export for ANTHROPIC_BASE_URL
This commit is contained in:
@@ -20,6 +20,9 @@ if [ -s "$CLAUDE_DESKTOP_COMMAND_FILE" ]; then
|
|||||||
else
|
else
|
||||||
CLAUDE_DESKTOP_COMMAND="$DEFAULT_CLAUDE_DESKTOP_COMMAND"
|
CLAUDE_DESKTOP_COMMAND="$DEFAULT_CLAUDE_DESKTOP_COMMAND"
|
||||||
fi
|
fi
|
||||||
|
if bashio::config.true 'install_headroom'; then
|
||||||
|
export ANTHROPIC_BASE_URL="http://127.0.0.1:8787"
|
||||||
|
fi
|
||||||
|
|
||||||
# Launch the configured command. If a custom/wrapped command fails to start, fall back to
|
# Launch the configured command. If a custom/wrapped command fails to start, fall back to
|
||||||
# the plain Claude Desktop launch so the desktop app still comes up for the user.
|
# the plain Claude Desktop launch so the desktop app still comes up for the user.
|
||||||
|
|||||||
Reference in New Issue
Block a user