mirror of
https://github.com/LLM-Red-Team/qwen-free-api.git
synced 2024-11-11 07:09:20 +08:00
处理AI绘图字段变更
This commit is contained in:
parent
b9d85f304f
commit
a9a4f7f659
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user