@@ -4,6 +4,9 @@ CLAUDE_CODE_VERSION=${CLAUDECODEVERSION:-"latest"}
44INSTALL_CODEX=${INSTALLCODEX:- " true" }
55INSTALL_NODE=${INSTALLNODE:- " true" }
66SHENGSUANYUN_API_KEY=${SHENGSUANYUN_API_KEY:- " none" }
7+ CODEX_DEFAULT_MODEL=${CODEXDEFAULTMODEL:- " openai/gpt-5.3-codex" }
8+ CLAUDE_CODE_DEFAULT_MODEL=${CLAUDECODEDEFAULTMODEL:- " anthropic/claude-sonnet-4.6" }
9+
710set -e
811
912# Clean up
@@ -183,7 +186,7 @@ if [ "\${SHENGSUANYUN_API_KEY}" != "none" ]; then
183186 run_as_user "coding-helper custom \\
184187 -url https://router.shengsuanyun.com/api/v1 \\
185188 -k \$ {SHENGSUANYUN_API_KEY} \\
186- -m anthropic/claude-sonnet-4.6 \\
189+ -m \$ {CLAUDE_CODE_DEFAULT_MODEL} \\
187190 -label 胜算云"
188191 else
189192 echo "Warning: coding-helper not found, skipping configuration"
@@ -195,7 +198,7 @@ if [ "\${SHENGSUANYUN_API_KEY}" != "none" ]; then
195198 run_as_user "coding-helper custom \\
196199 -url https://router.shengsuanyun.com/api/v1 \\
197200 -k \$ {SHENGSUANYUN_API_KEY} \\
198- -m openai/gpt-5.3-codex \\
201+ -m \$ {CODEX_DEFAULT_MODEL} \\
199202 -t codex \\
200203 -label 胜算云-codex"
201204 fi
@@ -206,7 +209,7 @@ if [ "\${SHENGSUANYUN_API_KEY}" != "none" ]; then
206209 run_as_user "coding-helper custom \\
207210 -url https://router.shengsuanyun.com/api/v1 \\
208211 -k \$ {SHENGSUANYUN_API_KEY} \\
209- -m anthropic/claude-sonnet-4.6 \\
212+ -m \$ {CLAUDE_CODE_DEFAULT_MODEL} \\
210213 -t claude \\
211214 -label 胜算云-claude"
212215 fi
0 commit comments