Skip to content

Commit

Permalink
fix(app/utils/chat.ts): fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Little-LittleProgrammer committed Feb 26, 2025
1 parent 0a25a1a commit a2c4e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/utils/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
UPLOAD_URL,
REQUEST_TIMEOUT_MS,
} from "@/app/constant";
import { RequestMessage } from "@/app/client/api";
import { MultimodalContent, RequestMessage } from "@/app/client/api";
import Locale from "@/app/locales";
import {
EventStreamContentType,
Expand Down Expand Up @@ -99,7 +99,7 @@ export async function preProcessImageContent(
return preProcessImageContentBase(content, async (url) => ({
type: "image_url",
image_url: { url },
}));
})) as Promise<MultimodalContent[] | string>;
}

export async function preProcessImageContentForAlibabaDashScope(
Expand Down

0 comments on commit a2c4e46

Please sign in to comment.