Spaces:
Sleeping
Sleeping
Somrat Sorkar commited on
Commit ·
1fc658a
1
Parent(s): 4a18107
Fix: agents should be object, not array
Browse files
start.sh
CHANGED
|
@@ -149,17 +149,16 @@ CONFIGEOF
|
|
| 149 |
# Gateway token
|
| 150 |
CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.auth.token = \"$GATEWAY_TOKEN\"")
|
| 151 |
|
| 152 |
-
# Add agents
|
| 153 |
-
CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".agents =
|
| 154 |
-
{
|
| 155 |
-
\"id\": \"main\",
|
| 156 |
\"kind\": \"main\",
|
| 157 |
\"sandbox\": \"require\",
|
| 158 |
\"defaults\": {
|
| 159 |
\"model\": \"$LLM_MODEL\"
|
| 160 |
}
|
| 161 |
}
|
| 162 |
-
|
| 163 |
|
| 164 |
# Control UI origin (allow HF Space URL for web UI access)
|
| 165 |
if [ -n "$SPACE_HOST" ]; then
|
|
|
|
| 149 |
# Gateway token
|
| 150 |
CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.auth.token = \"$GATEWAY_TOKEN\"")
|
| 151 |
|
| 152 |
+
# Add agents object with model configuration
|
| 153 |
+
CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".agents = {
|
| 154 |
+
\"main\": {
|
|
|
|
| 155 |
\"kind\": \"main\",
|
| 156 |
\"sandbox\": \"require\",
|
| 157 |
\"defaults\": {
|
| 158 |
\"model\": \"$LLM_MODEL\"
|
| 159 |
}
|
| 160 |
}
|
| 161 |
+
}")
|
| 162 |
|
| 163 |
# Control UI origin (allow HF Space URL for web UI access)
|
| 164 |
if [ -n "$SPACE_HOST" ]; then
|