Compare commits

...

3 Commits

Author SHA1 Message Date
Vinlic c70a4a4102 Release 0.0.24 2024-04-25 09:39:28 +08:00
Vinlic 376bb55ce3 Merge branch 'master' of https://github.com/LLM-Red-Team/glm-free-api 2024-04-25 09:38:53 +08:00
Vinlic 64e43ffd2c 优化绘图接口 2024-04-25 09:38:35 +08:00
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "glm-free-api",
"version": "0.0.22",
"version": "0.0.24",
"description": "GLM Free API Server",
"type": "module",
"main": "dist/index.js",

View File

@ -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);