mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-12-23 01:19:22 +08:00
支持指定绘图的智能体
This commit is contained in:
parent
1b1b3dd322
commit
fc3a40f0fe
@ -394,7 +394,7 @@ async function generateImages(
|
|||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: `Bearer ${token}`,
|
Authorization: `Bearer ${token}`,
|
||||||
Referer: `https://chatglm.cn/main/gdetail/${assistantId}`,
|
Referer: `https://chatglm.cn/main/gdetail/${model}`,
|
||||||
"X-Device-Id": util.uuid(false),
|
"X-Device-Id": util.uuid(false),
|
||||||
"X-Request-Id": util.uuid(false),
|
"X-Request-Id": util.uuid(false),
|
||||||
...FAKE_HEADERS,
|
...FAKE_HEADERS,
|
||||||
@ -420,7 +420,7 @@ async function generateImages(
|
|||||||
);
|
);
|
||||||
|
|
||||||
// 异步移除会话,如果消息不合规,此操作可能会抛出数据库错误异常,请忽略
|
// 异步移除会话,如果消息不合规,此操作可能会抛出数据库错误异常,请忽略
|
||||||
removeConversation(convId, refreshToken, assistantId).catch((err) =>
|
removeConversation(convId, refreshToken, model).catch((err) =>
|
||||||
console.error(err)
|
console.error(err)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user