mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-30 09:30:19 +09:00
feat: gpt 4.5 support
This commit is contained in:
parent
a80ac42c92
commit
256573c180
@ -359,6 +359,8 @@ const openaiModels = [
|
||||
"gpt-4-vision-preview",
|
||||
"gpt-4-turbo-2024-04-09",
|
||||
"gpt-4-1106-preview",
|
||||
"gpt-4.5-preview",
|
||||
"gpt-4.5-preview-2025-02-27",
|
||||
"dall-e-3",
|
||||
"o1-mini",
|
||||
"o1-preview",
|
||||
|
@ -319,6 +319,8 @@ export function isVisionModel(model: string) {
|
||||
"gemini-exp-1114",
|
||||
"gpt-4o",
|
||||
"gpt-4o-mini",
|
||||
"gpt-4.5-preview",
|
||||
"gpt-4.5-preview-2025-02-27",
|
||||
];
|
||||
|
||||
var googleModels = DEFAULT_MODELS.filter(
|
||||
@ -366,6 +368,8 @@ export function isSupportRAGModel(modelName: string) {
|
||||
"gpt-4o-2024-05-13",
|
||||
"gpt-4o-mini",
|
||||
"gpt-4o-mini-2024-07-18",
|
||||
"gpt-4.5-preview",
|
||||
"gpt-4.5-preview-2025-02-27",
|
||||
];
|
||||
if (specialModels.some((keyword) => modelName === keyword)) return true;
|
||||
if (isVisionModel(modelName)) return false;
|
||||
@ -394,6 +398,8 @@ export function isFunctionCallModel(modelName: string) {
|
||||
"gpt-4o-mini-2024-07-18",
|
||||
"gpt-4-turbo-2024-04-09",
|
||||
"gpt-4-1106-preview",
|
||||
"gpt-4.5-preview",
|
||||
"gpt-4.5-preview-2025-02-27",
|
||||
"claude-3-sonnet-20240229",
|
||||
"claude-3-opus-20240229",
|
||||
"claude-3-haiku-20240307",
|
||||
|
Loading…
Reference in New Issue
Block a user