mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-23 22:20:23 +09:00
Merge branch 'main' of https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
This commit is contained in:
commit
247a481332
@ -2071,6 +2071,6 @@ function _Chat() {
|
|||||||
|
|
||||||
export function Chat() {
|
export function Chat() {
|
||||||
const chatStore = useChatStore();
|
const chatStore = useChatStore();
|
||||||
const sessionIndex = chatStore.currentSessionIndex;
|
const session = chatStore.currentSession();
|
||||||
return <_Chat key={sessionIndex}></_Chat>;
|
return <_Chat key={session.id}></_Chat>;
|
||||||
}
|
}
|
||||||
|
@ -257,11 +257,11 @@ export function isVisionModel(model: string) {
|
|||||||
const excludeKeywords = ["claude-3-5-haiku-20241022"];
|
const excludeKeywords = ["claude-3-5-haiku-20241022"];
|
||||||
const visionKeywords = [
|
const visionKeywords = [
|
||||||
"vision",
|
"vision",
|
||||||
"claude-3",
|
|
||||||
"gemini-1.5-pro",
|
|
||||||
"gemini-1.5-flash",
|
|
||||||
"gpt-4o",
|
"gpt-4o",
|
||||||
"gpt-4o-mini",
|
"claude-3",
|
||||||
|
"gemini-1.5",
|
||||||
|
"qwen-vl",
|
||||||
|
"qwen2-vl",
|
||||||
];
|
];
|
||||||
const isGpt4Turbo =
|
const isGpt4Turbo =
|
||||||
model.includes("gpt-4-turbo") && !model.includes("preview");
|
model.includes("gpt-4-turbo") && !model.includes("preview");
|
||||||
|
Loading…
Reference in New Issue
Block a user