Files
st/docs/示例扩展manifest.json
2026-02-11 23:44:09 +08:00

100 lines
2.7 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"name": "example-extension",
"display_name": "示例扩展",
"version": "1.0.0",
"description": "这是一个用于测试的示例扩展,展示了各种配置项类型",
"author": "测试作者",
"homepage": "https://github.com/example/extension",
"repository": "https://github.com/example/extension",
"license": "MIT",
"type": "ui",
"category": "utilities",
"tags": ["测试", "示例", "配置"],
"settings": {
"enabled": {
"type": "boolean",
"label": "启用扩展",
"description": "是否启用此扩展的所有功能"
},
"apiKey": {
"type": "text",
"label": "API 密钥",
"placeholder": "sk-...",
"description": "请输入您的 API 密钥(用于访问外部服务)"
},
"apiEndpoint": {
"type": "text",
"label": "API 端点",
"placeholder": "https://api.example.com",
"description": "API 服务器地址"
},
"maxRetries": {
"type": "number",
"label": "最大重试次数",
"min": 1,
"max": 10,
"step": 1,
"description": "请求失败时的最大重试次数"
},
"timeout": {
"type": "number",
"label": "超时时间(秒)",
"min": 5,
"max": 300,
"step": 5,
"description": "API 请求的超时时间"
},
"temperature": {
"type": "slider",
"label": "温度",
"min": 0,
"max": 2,
"step": 0.1,
"description": "控制生成内容的随机性0=确定性2=高随机性)"
},
"model": {
"type": "select",
"label": "选择模型",
"options": [
{ "label": "GPT-4", "value": "gpt-4" },
{ "label": "GPT-3.5 Turbo", "value": "gpt-3.5-turbo" },
{ "label": "Claude 3", "value": "claude-3" }
],
"description": "选择要使用的 AI 模型"
},
"systemPrompt": {
"type": "textarea",
"label": "系统提示词",
"rows": 4,
"placeholder": "输入系统提示词...",
"description": "用于指导 AI 行为的系统提示词"
},
"logLevel": {
"type": "select",
"label": "日志级别",
"options": [
{ "label": "调试", "value": "debug" },
{ "label": "信息", "value": "info" },
{ "label": "警告", "value": "warn" },
{ "label": "错误", "value": "error" }
],
"description": "控制台日志的详细程度"
},
"autoSave": {
"type": "boolean",
"label": "自动保存",
"description": "自动保存对话历史"
},
"saveInterval": {
"type": "number",
"label": "保存间隔(秒)",
"min": 10,
"max": 600,
"step": 10,
"description": "自动保存的时间间隔"
}
},
"dependencies": {},
"conflicts": []
}