| Instruction | Function Description |
|---|---|
/commands | Execute Shell commands |
/deploy | Deploy application |
/model | Change the LLM model used by the sandbox |
/max_thinking_token | Change the maximum thinking token for sandbox settings (0 means turn off thinking) |
/commands, /model, /deploy./commands 'npm install express'/model glm-4.6Conversation ID (session_id) before /deploy{
"model": "302-sandbox-xxxxxxx",
"messages": [
{
"role": "user",
"content": "/commands 'ls -la'"
}
]
}curl --location --request POST 'https://api.302.ai/v1/v1/chat/completions' \
--header 'Authorization: Bearer ' \
--header 'session_id;' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "302-sandbox-xxxxxxx",
"messages": [
{
"role": "user",
"content": "/commands '\''ls -la'\''"
}
]
}'{}