| 指令 | 功能说明 |
|---|---|
/commands | 执行 Shell 命令 |
/deploy | 部署应用 |
/model | 更改沙盒使用的 LLM 模型 |
/max_thinking_token | 更改沙盒设置的最大思考token(0表示关闭思考) |
/plugin xxxxx | 使用claude code plugin指令 |
/commands、/model、/deploy。/commands 'npm install express'/model glm-4.6/deploy 之前的对话id(session_id){
"model": "302-sandbox-xxxxxxx",
"messages": [
{
"role": "user",
"content": "/commands 'ls -la'"
}
]
}curl --location --request POST 'https://api.302.ai/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'\''"
}
]
}'{
"id": "chatcmpl-588f4e78fee4",
"object": "chat.completion.chunk",
"created": 1768187077,
"model": "302-sandbox-xxxxxx",
"choices": [
{
"index": 0,
"delta": {
"role": "assistant",
"content": ""
},
"finish_reason": null
}
]
}