This commit is contained in:
@@ -38,11 +38,11 @@ class ImageGenerator:
|
||||
2. 画面必须清晰、线条粗壮,适合低分辨率热敏打印机打印。
|
||||
3. 绝对不要有复杂的阴影、渐变、黑白线条描述。
|
||||
4. 背景必须是纯白 (White background)。
|
||||
5. 提示词内容请使用英文描述,因为绘图模型对英文理解更好,但在描述中强调 "black and white line art", "simple lines", "vector style"。
|
||||
5. 提示词内容请使用中文描述,因为绘图模型对中文生成要更准确。
|
||||
6. 尺寸比例遵循宽48mm:高30mm (约 1.6:1)。
|
||||
7. 直接输出优化后的提示词,不要包含任何解释。
|
||||
如果用户要求输入文字,则用```把文字包裹起来,文字是中文
|
||||
"black and white line art, Chinese:```中国人```"
|
||||
"房子的旁边有一个小孩,黑白线稿画作,卡通形象, 文字:```中国人```在下方。"
|
||||
"""
|
||||
|
||||
try:
|
||||
@@ -52,7 +52,7 @@ class ImageGenerator:
|
||||
# Currently using Qwen-Turbo for all providers for prompt optimization
|
||||
# You can also decouple this if needed
|
||||
response = Generation.call(
|
||||
model='qwen-turbo',
|
||||
model='qwen3.5-plus',
|
||||
prompt=f'{system_prompt}\n\n用户语音识别结果:{asr_text}\n\n优化后的提示词:',
|
||||
max_tokens=200,
|
||||
temperature=0.8
|
||||
|
||||
Reference in New Issue
Block a user