We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a25a1a commit a2c4e46Copy full SHA for a2c4e46
app/utils/chat.ts
@@ -3,7 +3,7 @@ import {
3
UPLOAD_URL,
4
REQUEST_TIMEOUT_MS,
5
} from "@/app/constant";
6
-import { RequestMessage } from "@/app/client/api";
+import { MultimodalContent, RequestMessage } from "@/app/client/api";
7
import Locale from "@/app/locales";
8
import {
9
EventStreamContentType,
@@ -99,7 +99,7 @@ export async function preProcessImageContent(
99
return preProcessImageContentBase(content, async (url) => ({
100
type: "image_url",
101
image_url: { url },
102
- }));
+ })) as Promise<MultimodalContent[] | string>;
103
}
104
105
export async function preProcessImageContentForAlibabaDashScope(
0 commit comments