Add GPT4o mini

This commit is contained in:
kwaroran
2024-08-05 17:35:15 +09:00
parent 9694637a4f
commit e521a1b366
2 changed files with 11 additions and 0 deletions

View File

@@ -99,6 +99,10 @@ export function getModelName(name:string){
return 'GPT-4o'
case 'gpt4o-2024-05-13':
return 'GPT-4o (2024-05-13)'
case 'gpt4om':
return 'GPT-4o Mini'
case 'gpt4om-2024-07-18':
return 'GPT-4o Mini (2024-07-18)'
case 'gemini-1.5-pro-latest':
return 'Gemini 1.5 Pro'
case 'gemini-1.5-flash':
@@ -133,6 +137,9 @@ export function getModelShortName(model:string){
if(model.startsWith("cohere-")){
return model.replace("cohere-", "")
}
if(model.startsWith('gpt4om')){
return "GPT-4o Mini"
}
if(model.startsWith("gpt4o")){
return "GPT-4o"
}

View File

@@ -175,6 +175,8 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
case 'gpt4_turbo':
case 'gpt4o':
case 'gpt4o-2024-05-13':
case 'gpt4om':
case 'gpt4om-2024-07-18':
case 'reverse_proxy':{
let formatedChat:OpenAIChatExtra[] = []
for(let i=0;i<formated.length;i++){
@@ -415,6 +417,8 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
: requestModel === 'gpt4_turbo' ? 'gpt-4-turbo'
: requestModel === 'gpt4o' ? 'gpt-4o'
: requestModel === 'gpt4o-2024-05-13' ? 'gpt-4o-2024-05-13'
: requestModel === 'gpt4om' ? 'gpt-4o-mini'
: requestModel === 'gpt4om-2024-07-18' ? 'gpt-4o-mini-2024-07-18'
: (!requestModel) ? 'gpt-3.5-turbo'
: requestModel,
messages: formatedChat,