mirror of
https://github.com/LLM-Red-Team/glm-free-api.git
synced 2024-12-23 01:19:22 +08:00
修复传model值时未进行智能体ID识别处理
This commit is contained in:
parent
e2cf522844
commit
fee72ca188
@ -18,8 +18,8 @@ export default {
|
||||
const token = _.sample(tokens);
|
||||
const prompt = request.body.prompt;
|
||||
const responseFormat = _.defaultTo(request.body.response_format, "url");
|
||||
const model = request.body.model;
|
||||
const imageUrls = await chat.generateImages(model, prompt, token);
|
||||
const assistantId = /^[a-z0-9]{24,}$/.test(request.body.model) ? request.body.model : undefined
|
||||
const imageUrls = await chat.generateImages(assistantId, prompt, token);
|
||||
let data = [];
|
||||
if (responseFormat == "b64_json") {
|
||||
data = (
|
||||
|
Loading…
Reference in New Issue
Block a user