mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2026-01-13 07:04:35 +08:00
处理AI绘图字段变更
This commit is contained in:
@@ -651,7 +651,7 @@ async function receiveImages(
|
||||
if (role != "assistant" && !_.isString(content)) return str;
|
||||
return str + content;
|
||||
}, "");
|
||||
if (result.contentType == "text2image") {
|
||||
if (result.contentFrom == "text2image") {
|
||||
const urls =
|
||||
text.match(
|
||||
/https?:\/\/[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=\,]*)/gi
|
||||
|
||||
Reference in New Issue
Block a user