Skip to content

Commit

Permalink
修复DALL-E兼容图像接口
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinlic committed Jun 12, 2024
1 parent 34282ad commit 72b3698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/controllers/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1064,10 +1064,10 @@ async function receiveImages(
throw new APIException(EX.API_CONTENT_FILTERED);
if (result.status != "finish") {
result.parts.forEach((part) => {
const { content } = part;
const { status: partStatus, content } = part;
if (!_.isArray(content)) return;
content.forEach((value) => {
const { status: partStatus, type, image, text } = value;
const { type, image, text } = value;
if (
type == "image" &&
_.isArray(image) &&
Expand Down

0 comments on commit 72b3698

Please sign in to comment.