the length of messages must be an odd number
Closed this issue · 1 comments
hrenxiang commented
问题:the length of messages must be an odd number
运行环境:Springboot 3.1.4、JDK17
调用方法:ErnieBotClient.chatCont()
调用文心一言接口报错:
ErrorResponse( id=as-wvtx0jmnfp, logId=null, errorCode=336006, ebCode=null, errorMsg=the length of messages must be an odd number )
定位问题:
synchronizeHistories方法中updated.offer(message);放在了判断外,导致问题重复添加,应该放在判断内部
citmina commented
收到,将在1.1.1版本修复,可暂时退回1.0.0版本规避这个问题。