Skip to content

Commit 7151d8a

Browse files
authored
Reference the passed in ARG_COPILOT_MODEL
1 parent b3b0992 commit 7151d8a

File tree

1 file changed

+2
-1
lines changed
  • registry/coder-labs/modules/copilot/scripts

1 file changed

+2
-1
lines changed

registry/coder-labs/modules/copilot/scripts/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ ARG_MCP_CONFIG=$(echo -n "${ARG_MCP_CONFIG:-}" | base64 -d 2> /dev/null || echo
1414
ARG_COPILOT_CONFIG=$(echo -n "${ARG_COPILOT_CONFIG:-}" | base64 -d 2> /dev/null || echo "")
1515
ARG_EXTERNAL_AUTH_ID=${ARG_EXTERNAL_AUTH_ID:-github}
1616
ARG_COPILOT_VERSION=${ARG_COPILOT_VERSION:-0.0.334}
17+
ARG_COPILOT_MODEL=${ARG_COPILOT_MODEL:-claude-sonnet-4.5}
1718

1819
validate_prerequisites() {
1920
if ! command_exists node; then
@@ -201,7 +202,7 @@ add_custom_mcp_servers() {
201202
}
202203

203204
configure_copilot_model() {
204-
if [ -n "$ARG_COPILOT_MODEL" ] && [ "$ARG_COPILOT_MODEL" != "claude-sonnet-4.5" ]; then
205+
if [ "$ARG_COPILOT_MODEL" != "claude-sonnet-4.5" ]; then
205206
echo "Setting Copilot model to: $ARG_COPILOT_MODEL"
206207
copilot config model "$ARG_COPILOT_MODEL" || {
207208
echo "WARNING: Failed to set model via copilot config, will use environment variable fallback"

0 commit comments

Comments
 (0)