Add gpt-3.5-turbo-0125, fix gpt-4-0314 (#288)
# PR Checklist - [x] Did you check if it works normally in all models? *ignore this when it dosen't uses models* - [x] Did you check if it works normally in all of web, local and node hosted versions? if it dosen't, did you blocked it in those versions? - [x] Did you added a type def? # Description Reference: https://platform.openai.com/docs/models/gpt-3-5-turbo https://platform.openai.com/docs/deprecations 1. Added gpt-3.5-turbo-0125 model: The current gpt-3.5-turbo is pointed to the 0613 model, but the official documentation says it will automatically upgrade to the 0125 model on February 16 anyway. 2. Fixed the model name of gpt-4-0314, although it is deprecated.
This commit is contained in:
@@ -152,9 +152,10 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
|
||||
case 'gpt4_32k_0613':
|
||||
case 'gpt4_1106':
|
||||
case 'gpt4_0125':
|
||||
case 'gpt35_0125':
|
||||
case 'gpt35_1106':
|
||||
case 'gpt35_0301':
|
||||
case 'gpt4_0301':
|
||||
case 'gpt4_0314':
|
||||
case 'gptvi4_1106':
|
||||
case 'openrouter':
|
||||
case 'mistral-tiny':
|
||||
@@ -405,9 +406,10 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
|
||||
: requestModel === "gpt4_1106" ? 'gpt-4-1106-preview'
|
||||
: requestModel === 'gpt4_0125' ? 'gpt-4-0125-preview'
|
||||
: requestModel === "gptvi4_1106" ? 'gpt-4-vision-preview'
|
||||
: requestModel === "gpt35_0125" ? 'gpt-3.5-turbo-0125'
|
||||
: requestModel === "gpt35_1106" ? 'gpt-3.5-turbo-1106'
|
||||
: requestModel === 'gpt35_0301' ? 'gpt-3.5-turbo-0301'
|
||||
: requestModel === 'gpt4_0301' ? 'gpt-4-0301'
|
||||
: requestModel === 'gpt4_0314' ? 'gpt-4-0314'
|
||||
: (!requestModel) ? 'gpt-3.5-turbo'
|
||||
: requestModel,
|
||||
messages: formatedChat,
|
||||
|
||||
Reference in New Issue
Block a user