crawl_config.json
3.15 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
{
"skill_name": "idearuncreate",
"description": "从素材自动生成 classic 互动剧本(含角色图/背景图/封面图)",
"version": "1.0.0",
"created_at": "2026-04-13",
"apis": [
{
"name": "Jimeng 文生图",
"provider": "万界 (Wanjie)",
"endpoint": "https://maas-openapi.wanjidedata.com/api/jimeng/v1",
"action": "CVSync2AsyncSubmitTask",
"req_key": "jimeng_t2i_v40",
"mode": "async",
"timeout": 120000,
"params": {
"prompt": "string",
"width": 1024,
"height": 1024
},
"fallback": {
"name": "Nano Banana Pro",
"endpoint": "https://maas-openapi.wanjidedata.com/api/v1beta/models/gemini-3-pro-image-preview:generateContent",
"mode": "sync"
}
},
{
"name": "OSS 上传",
"provider": "阿里云 OSS",
"region": "oss-cn-beijing",
"operations": [
"put"
],
"path_patterns": [
"dramas/{dramaKey}/characters/{hex_name}.png",
"dramas/{dramaKey}/background.png",
"dramas/{dramaKey}/cover.png",
"dramas/{dramaKey}/bundle.json"
]
},
{
"name": "数据库写入",
"provider": "MySQL (Sequelize)",
"tables": [
"dramas",
"drama_characters",
"drama_emotions",
"drama_scripts"
]
}
],
"config": {
"env_loading_priority": [
"--env parameter",
"DRAMA_ENV_PATH env",
"script directory .env"
],
"required_env_vars": [
"DB_HOST",
"DB_PORT",
"DB_USER",
"DB_PASSWORD",
"DB_NAME",
"OSS_REGION",
"OSS_ACCESS_KEY_ID",
"OSS_ACCESS_KEY_SECRET",
"OSS_BUCKET",
"WANJIE_API_KEY"
],
"retry": {
"image_api": {
"max_attempts": 3,
"backoff_ms": 3000
}
}
},
"data_schema": {
"input": {
"name": "string (required)",
"title": "string",
"subtitle": "string",
"description": "string",
"systemPrompt": "string",
"tags": "string (comma separated)",
"language": "zh|en|multi",
"i18n": "object (optional)",
"characters": [
{
"name": "string (required)",
"gender": "male|female",
"voiceId": "string (S_xxx)",
"imagePrompt": "string (required for generation)"
}
],
"script": [
{
"character": "string (required)",
"dialogue": "string (required)",
"avatar": "string (default: normal.png)",
"instruction": "string|null",
"action": "none|shake|jump|spin|zoom-in",
"position": "left|right"
}
],
"backgroundPrompt": "string",
"coverPrompt": "string"
},
"output": {
"dramaKey": "string",
"characters": [
{
"bodyUrl": "https://...",
"faceOffset": { "top": "x%", "left": "y%", "width": "z%" }
}
],
"backgroundUrl": "https://...",
"coverUrl": "https://..."
}
},
"limitations": [
"Text Risk 审核失败需脱敏改写",
"Jimeng 超时 120s 自动 fallback",
"rembg 未安装时跳过去背景",
"背景/封面禁含文字"
]
}