[feat] add gpt4-32k

This commit is contained in:
kwaroran
2023-05-26 21:06:50 +09:00
parent 684d787dab
commit 3bd6ea0c76
5 changed files with 9 additions and 6 deletions

View File

@@ -56,7 +56,8 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
switch(aiModel){
case 'gpt35':
case 'gpt4':{
case 'gpt4':
case 'gpt4_32k':{
for(let i=0;i<formated.length;i++){
if(arg.isGroupChat){
@@ -66,7 +67,8 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
}
const body = ({
model: aiModel === 'gpt35' ? 'gpt-3.5-turbo' : 'gpt-4',
model: aiModel === 'gpt35' ? 'gpt-3.5-turbo'
: aiModel === 'gpt4' ? 'gpt-4' : 'gpt-4-32k',
messages: formated,
temperature: arg.temperature ?? (db.temperature / 100),
max_tokens: arg.maxTokens ?? maxTokens,