优化绘图接口

This commit is contained in:
Vinlic 2024-04-25 09:38:35 +08:00
parent 50083accf0
commit 64e43ffd2c

View File

@ -379,8 +379,7 @@ async function generateImages(
return (async () => { return (async () => {
logger.info(prompt); logger.info(prompt);
const messages = [ const messages = [
{ role: "user", content: prompt.indexOf('画') == -1 ? `请画:${prompt}` : prompt },
{ role: "user", content: prompt },
]; ];
// 请求流 // 请求流
const token = await acquireToken(refreshToken); const token = await acquireToken(refreshToken);