mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-11 06:53:22 +08:00
重构主控编排与运行时预热链路,统一工作区提示词/专家调度协议并补齐 wiki 记忆注入与写回闭环。
同时收敛启动与运维脚本默认行为(含 wiki worker)、更新 Admin 可观测性与相关测试,降低首轮时延并提高运行稳定性。 Made-with: Cursor
This commit is contained in:
parent
4a23b715a2
commit
dbbe3add6a
14438 changed files with 2693620 additions and 2546 deletions
153
openclaw/extensions/xai/openclaw.plugin.json
Normal file
153
openclaw/extensions/xai/openclaw.plugin.json
Normal file
|
|
@ -0,0 +1,153 @@
|
|||
{
|
||||
"id": "xai",
|
||||
"enabledByDefault": true,
|
||||
"providers": ["xai"],
|
||||
"providerEndpoints": [
|
||||
{
|
||||
"endpointClass": "xai-native",
|
||||
"hosts": ["api.x.ai", "api.grok.x.ai"]
|
||||
}
|
||||
],
|
||||
"syntheticAuthRefs": ["xai"],
|
||||
"providerAuthEnvVars": {
|
||||
"xai": ["XAI_API_KEY"]
|
||||
},
|
||||
"providerAuthChoices": [
|
||||
{
|
||||
"provider": "xai",
|
||||
"method": "api-key",
|
||||
"choiceId": "xai-api-key",
|
||||
"choiceLabel": "xAI API key",
|
||||
"groupId": "xai",
|
||||
"groupLabel": "xAI (Grok)",
|
||||
"groupHint": "API key",
|
||||
"optionKey": "xaiApiKey",
|
||||
"cliFlag": "--xai-api-key",
|
||||
"cliOption": "--xai-api-key <key>",
|
||||
"cliDescription": "xAI API key"
|
||||
}
|
||||
],
|
||||
"uiHints": {
|
||||
"webSearch.apiKey": {
|
||||
"label": "Grok Search API Key",
|
||||
"help": "xAI API key for Grok web search (fallback: XAI_API_KEY env var).",
|
||||
"sensitive": true
|
||||
},
|
||||
"webSearch.model": {
|
||||
"label": "Grok Search Model",
|
||||
"help": "Grok model override for web search."
|
||||
},
|
||||
"webSearch.inlineCitations": {
|
||||
"label": "Inline Citations",
|
||||
"help": "Include inline markdown citations in Grok responses."
|
||||
},
|
||||
"codeExecution.enabled": {
|
||||
"label": "Enable Code Execution",
|
||||
"help": "Enable the code_execution tool for remote xAI sandbox analysis."
|
||||
},
|
||||
"xSearch.enabled": {
|
||||
"label": "Enable X Search",
|
||||
"help": "Enable the x_search tool for searching X posts with xAI."
|
||||
},
|
||||
"xSearch.model": {
|
||||
"label": "X Search Model",
|
||||
"help": "xAI model override for x_search."
|
||||
},
|
||||
"xSearch.inlineCitations": {
|
||||
"label": "X Search Inline Citations",
|
||||
"help": "Keep inline markdown citations from xAI in x_search responses when available."
|
||||
},
|
||||
"xSearch.maxTurns": {
|
||||
"label": "X Search Max Turns",
|
||||
"help": "Optional max internal tool turns xAI may use per x_search request."
|
||||
},
|
||||
"xSearch.timeoutSeconds": {
|
||||
"label": "X Search Timeout",
|
||||
"help": "Timeout in seconds for x_search requests."
|
||||
},
|
||||
"xSearch.cacheTtlMinutes": {
|
||||
"label": "X Search Cache TTL",
|
||||
"help": "Cache TTL in minutes for x_search results."
|
||||
},
|
||||
"codeExecution.model": {
|
||||
"label": "Code Execution Model",
|
||||
"help": "xAI model override for code_execution."
|
||||
},
|
||||
"codeExecution.maxTurns": {
|
||||
"label": "Code Execution Max Turns",
|
||||
"help": "Optional max internal tool turns xAI may use for code_execution."
|
||||
},
|
||||
"codeExecution.timeoutSeconds": {
|
||||
"label": "Code Execution Timeout",
|
||||
"help": "Timeout in seconds for code_execution requests."
|
||||
}
|
||||
},
|
||||
"contracts": {
|
||||
"webSearchProviders": ["grok"],
|
||||
"videoGenerationProviders": ["xai"],
|
||||
"tools": ["code_execution", "x_search"]
|
||||
},
|
||||
"configSchema": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"webSearch": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"apiKey": {
|
||||
"type": ["string", "object"]
|
||||
},
|
||||
"model": {
|
||||
"type": "string"
|
||||
},
|
||||
"inlineCitations": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"xSearch": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"model": {
|
||||
"type": "string"
|
||||
},
|
||||
"inlineCitations": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"maxTurns": {
|
||||
"type": "number"
|
||||
},
|
||||
"timeoutSeconds": {
|
||||
"type": "number"
|
||||
},
|
||||
"cacheTtlMinutes": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
},
|
||||
"codeExecution": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"enabled": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"model": {
|
||||
"type": "string"
|
||||
},
|
||||
"maxTurns": {
|
||||
"type": "number"
|
||||
},
|
||||
"timeoutSeconds": {
|
||||
"type": "number"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue