mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-17 22:43:42 +08:00
大幅优化同步
This commit is contained in:
@@ -83,7 +83,12 @@ export class GeminiProApi implements LLMApi {
|
||||
}
|
||||
const messages = _messages.map((v) => {
|
||||
let parts: any[] = [{ text: getMessageTextContent(v) }];
|
||||
if (isVisionModel(options.config.model, accessStore.visionModels)) {
|
||||
if (
|
||||
isVisionModel(
|
||||
options.config.model,
|
||||
useAccessStore.getState().visionModels,
|
||||
)
|
||||
) {
|
||||
const images = getMessageImages(v);
|
||||
if (images.length > 0) {
|
||||
multimodal = true;
|
||||
|
||||
Reference in New Issue
Block a user