Fix reverse_proxy claude error

This commit is contained in:
sub-hub
2024-08-17 13:08:20 +09:00
committed by GitHub
parent 12d05861db
commit 7a979eadfb

View File

@@ -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