50 lines
1.8 KiB
JSON
50 lines
1.8 KiB
JSON
{
|
|
"jupyter.lab.shortcuts": [],
|
|
"jupyter.lab.toolbars": {
|
|
"Cell": [{ "name": "opencode-cell-actions", "rank": 100 }]
|
|
},
|
|
"title": "opencode_bridge",
|
|
"description": "opencode_bridge settings.",
|
|
"type": "object",
|
|
"properties": {
|
|
"opencodeServerUrl": {
|
|
"type": "string",
|
|
"title": "OpenCode Server URL",
|
|
"description": "opencode serve 监听的 HTTP 地址。覆盖 OPENCODE_BRIDGE_URL 环境变量。",
|
|
"default": "http://127.0.0.1:4096"
|
|
},
|
|
"opencodeServerUser": {
|
|
"type": "string",
|
|
"title": "OpenCode Server 用户名",
|
|
"description": "HTTP Basic Auth 用户名。默认 'opencode'。可被 OPENCODE_BRIDGE_USER 环境变量覆盖。",
|
|
"default": "opencode"
|
|
},
|
|
"opencodeServerPassword": {
|
|
"type": "string",
|
|
"title": "OpenCode Server 密码",
|
|
"description": "HTTP Basic Auth 密码。空字符串表示无认证。可被 OPENCODE_BRIDGE_PASSWORD 环境变量覆盖。",
|
|
"default": ""
|
|
},
|
|
"opencodeProvider": {
|
|
"type": "string",
|
|
"title": "OpenCode Provider",
|
|
"description": "Provider id (e.g. 'anthropic' or 'openai'). Get available values from the browser console after activating this extension (logged on startup), or hit GET /opencode-bridge/providers directly. Leave empty to use OpenCode's default.",
|
|
"default": ""
|
|
},
|
|
"opencodeModel": {
|
|
"type": "string",
|
|
"title": "OpenCode Model",
|
|
"description": "Model id (e.g. 'claude-sonnet-4-20250514'). Get available values from the browser console after activation. Leave empty to use the provider's default.",
|
|
"default": ""
|
|
},
|
|
"requestTimeoutSeconds": {
|
|
"type": "integer",
|
|
"title": "请求超时(秒)",
|
|
"default": 120,
|
|
"minimum": 5,
|
|
"maximum": 600
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|