mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-12-22 17:09:22 +08:00
优化绘图接口
This commit is contained in:
parent
50083accf0
commit
64e43ffd2c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user