add sonnet 3.5 for aws and custom (#541)

# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ ] 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?
- [ ] Did you added a type def?

# Description
aws += sonnet-3-5
custom += sonnet-3-5, gpt-4-turbo
This commit is contained in:
kwaroran
2024-06-29 00:47:57 +09:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

View File

@@ -1818,10 +1818,15 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
"anthropic.claude-v2:1",
"anthropic.claude-3-haiku-20240307-v1:0",
"anthropic.claude-3-sonnet-20240229-v1:0",
"anthropic.claude-3-5-sonnet-20240620-v1:0",
"anthropic.claude-3-opus-20240229-v1:0"
];
const awsModel = raiModel.includes("opus") ? modelIDs[4] : raiModel.includes("sonnet") ? modelIDs[3] : modelIDs[2];
const awsModel =
raiModel.includes("3-opus") ? modelIDs[5] :
raiModel.includes("3-5-sonnet") ? modelIDs[4] :
raiModel.includes("3-sonnet") ? modelIDs[3] :
modelIDs[2];
const url = `https://${host}/model/${awsModel}/invoke${stream ? "-with-response-stream" : ""}`
const params = {