This commit is contained in:
2025-08-27 08:15:34 +08:00
parent 0d67433a26
commit d036c34396
6 changed files with 158 additions and 32 deletions

View File

@@ -5,10 +5,11 @@ import requests
from dashscope import ImageSynthesis
import os
from Config.Config import ALY_LLM_API_KEY
prompt = "一副典雅庄重的对联悬挂于厅堂之中,房间是个安静古典的中式布置,桌子上放着一些青花瓷,对联上左书“义本生知人机同道善思新”,右书“通云赋智乾坤启数高志远”, 横批“智启通义”,字体飘逸,中间挂在一着一副中国风的画作,内容是岳阳楼。"
# 若没有配置环境变量请用百炼API Key将下行替换为api_key="sk-xxx"
api_key = os.getenv("DASHSCOPE_API_KEY")
api_key = ALY_LLM_API_KEY
def async_call():
print('----创建任务----')