-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.json
More file actions
67 lines (67 loc) · 1.91 KB
/
Config.json
File metadata and controls
67 lines (67 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
"name": "GLM Translate",
"identifier": "com.example.popclip.glm-translate",
"version": 1,
"description": "使用 GLM 模型进行中英互译",
"popclipVersion": 4586,
"entitlements": ["network"],
"options": [
{
"identifier": "apiKey",
"label": "API Key",
"type": "string",
"description": "智谱 AI API Key"
},
{
"identifier": "apiBase",
"label": "API Base URL",
"type": "string",
"defaultValue": "https://open.bigmodel.cn/api/paas/v4/chat/completions",
"description": "API 地址"
},
{
"identifier": "model",
"label": "Model",
"type": "string",
"defaultValue": "glm-4-flash",
"description": "模型名称"
},
{
"identifier": "promptZhToEn",
"label": "中译英提示词",
"type": "string",
"defaultValue": "你是专业、真实的翻译专家。将以下简体中文翻译成英文,保持原文的换行格式,只输出译文:",
"description": "简体中文翻译为英文的提示词"
},
{
"identifier": "promptEnToZh",
"label": "英译中提示词",
"type": "string",
"defaultValue": "你是专业、真实的翻译专家。将以下英文翻译成简体中文,保持原文的换行格式,只输出译文:",
"description": "英文翻译为简体中文的提示词"
},
{
"identifier": "temperature",
"label": "Temperature",
"type": "string",
"defaultValue": "0.3",
"description": "生成温度 (0-1),越低越稳定"
},
{
"identifier": "timeout",
"label": "Timeout",
"type": "string",
"defaultValue": "30000",
"description": "请求超时时间 (毫秒)"
}
],
"actions": [
{
"title": "Instant Translate",
"icon": "symbol:globe",
"requirements": ["text"],
"after": "show-result",
"javascript file": "translate.js"
}
]
}