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