Fix reverse_proxy claude error (#594)
# 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
This commit is contained in:
@@ -1863,7 +1863,7 @@ export async function requestChatDataMain(arg:requestDataArgument, model:'model'
|
||||
|
||||
if(aiModel === 'reverse_proxy'){
|
||||
finalChat = claudeChat.map((v) => {
|
||||
if(v.content.length === 0 && v.content[0].type === 'text'){
|
||||
if(v.content.length > 0 && v.content[0].type === 'text'){
|
||||
return {
|
||||
role: v.role,
|
||||
content: v.content[0].text
|
||||
|
||||
Reference in New Issue
Block a user