mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
Merge branch 'ChatGPTNextWeb:main' into main
This commit is contained in:
commit
a3cad6ad10
@ -118,7 +118,7 @@ export class ChatGPTApi implements LLMApi {
|
|||||||
enumerable: true,
|
enumerable: true,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
writable: true,
|
writable: true,
|
||||||
value: Math.max(modelConfig.max_tokens, 4096),
|
value: modelConfig.max_tokens,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -292,8 +292,8 @@ export function getMessageImages(message: RequestMessage): string[] {
|
|||||||
|
|
||||||
export function isVisionModel(model: string) {
|
export function isVisionModel(model: string) {
|
||||||
return (
|
return (
|
||||||
model.startsWith("gpt-4-vision") ||
|
// model.startsWith("gpt-4-vision") ||
|
||||||
model.startsWith("gemini-pro-vision") ||
|
// model.startsWith("gemini-pro-vision") ||
|
||||||
!DEFAULT_MODELS.find((m) => m.name == model)
|
model.includes("vision")
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user