mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 04:51:33 +08:00
fix: ts type
This commit is contained in:
@@ -59,7 +59,7 @@ export class GeminiProApi implements LLMApi {
|
||||
let multimodal = false;
|
||||
|
||||
// try get base64image from local cache image_url
|
||||
const _messages = [];
|
||||
const _messages: ChatOptions["messages"] = [];
|
||||
for (const v of options.messages) {
|
||||
const content = await preProcessImageContent(v.content);
|
||||
_messages.push({ role: v.role, content });
|
||||
|
Reference in New Issue
Block a user