Skip to content

Commit

Permalink
优化绘图接口
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed Apr 25, 2024
1 parent 50083ac commit 64e43ff
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/controllers/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,7 @@ async function generateImages(
return (async () => {
logger.info(prompt);
const messages = [

{ role: "user", content: prompt },
{ role: "user", content: prompt.indexOf('画') == -1 ? `请画:${prompt}` : prompt },
];
// 请求流
const token = await acquireToken(refreshToken);
Expand Down

0 comments on commit 64e43ff

Please sign in to comment.