Skip to content

Commit a2c4e46

Browse files
fix(app/utils/chat.ts): fix type error
1 parent 0a25a1a commit a2c4e46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/utils/chat.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
UPLOAD_URL,
44
REQUEST_TIMEOUT_MS,
55
} from "@/app/constant";
6-
import { RequestMessage } from "@/app/client/api";
6+
import { MultimodalContent, RequestMessage } from "@/app/client/api";
77
import Locale from "@/app/locales";
88
import {
99
EventStreamContentType,
@@ -99,7 +99,7 @@ export async function preProcessImageContent(
9999
return preProcessImageContentBase(content, async (url) => ({
100100
type: "image_url",
101101
image_url: { url },
102-
}));
102+
})) as Promise<MultimodalContent[] | string>;
103103
}
104104

105105
export async function preProcessImageContentForAlibabaDashScope(

0 commit comments

Comments
 (0)