Spaces:
Running
Running
Somrat Sorkar commited on
Commit ·
495e016
1
Parent(s): 00c3396
Set model via gateway.agents.defaults.model in config
Browse files
start.sh
CHANGED
|
@@ -146,8 +146,9 @@ CONFIG_JSON=$(cat <<'CONFIGEOF'
|
|
| 146 |
CONFIGEOF
|
| 147 |
)
|
| 148 |
|
| 149 |
-
# Gateway token
|
| 150 |
CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.auth.token = \"$GATEWAY_TOKEN\"")
|
|
|
|
| 151 |
|
| 152 |
# Control UI origin (allow HF Space URL for web UI access)
|
| 153 |
if [ -n "$SPACE_HOST" ]; then
|
|
|
|
| 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
|