Skip to content

Commit ba6386d

Browse files
committed
fix: set ANTHROPIC_API_KEY from auth_token when key not provided
release: v1.3.5 - ANTHROPIC_API_KEY from auth_token fallback
1 parent 1390acf commit ba6386d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

llm-env

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# source ./llm-env config <command>
99

1010
# Version information
11-
VERSION="1.3.4"
11+
VERSION="1.3.5"
1212

1313
# ---------- Shell Detection and Version ----------
1414

@@ -1027,6 +1027,8 @@ set_single_provider() {
10271027
fi
10281028
if [[ -n "$auth_token" ]]; then
10291029
export ANTHROPIC_AUTH_TOKEN="$auth_token"
1030+
# Also set ANTHROPIC_API_KEY from auth_token if not already set
1031+
export ANTHROPIC_API_KEY="${ANTHROPIC_API_KEY:-$auth_token}"
10301032
fi
10311033
export LLM_PROVIDER="$provider"
10321034
export LLM_PROTOCOL="$protocol"

0 commit comments

Comments
 (0)