Somrat Sorkar commited on
Commit
b0340c8
·
1 Parent(s): 495e016

Fix: agents.defaults.model at top level, not under gateway

Browse files
Files changed (1) hide show
  1. start.sh +4 -2
start.sh CHANGED
@@ -146,9 +146,11 @@ CONFIG_JSON=$(cat <<'CONFIGEOF'
146
  CONFIGEOF
147
  )
148
 
149
- # Gateway token + model
150
  CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.auth.token = \"$GATEWAY_TOKEN\"")
151
- CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.agents = {\"defaults\": {\"model\": \"$LLM_MODEL\"}}")
 
 
152
 
153
  # Control UI origin (allow HF Space URL for web UI access)
154
  if [ -n "$SPACE_HOST" ]; then
 
146
  CONFIGEOF
147
  )
148
 
149
+ # Gateway token
150
  CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.auth.token = \"$GATEWAY_TOKEN\"")
151
+
152
+ # Model configuration at top level
153
+ CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".agents.defaults.model = \"$LLM_MODEL\"")
154
 
155
  # Control UI origin (allow HF Space URL for web UI access)
156
  if [ -n "$SPACE_HOST" ]; then