Open 165149324 opened 1 month ago
I have the same issue
show your code
api 更新了,我之前一直正确使用,现在也出现这个错误了: java.lang.RuntimeException: API调用异常: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "completion_tokens_details" (class com.plexpt.chatgpt.entity.billing.Usage), not marked as ignorable (3 known properties: "prompt_tokens", "completion_tokens", "total_tokens"]) at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 22, column: 35] (through reference chain: com.plexpt.chatgpt.entity.chat.ChatCompletionResponse["usage"]->com.plexpt.chatgpt.entity.billing.Usage["completion_tokens_details"])
Looks like ChatGPT started returning an extra field completion_tokens_details in entity Usage
updating
fixed
已修复, 5.1.1
maven仓库多久更新呢?目前还获取不到
数小时延迟
Exception in thread "main" java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "completion_tokens_details" (class com.plexpt.chatgpt.entity.billing.Usage), not marked as ignorable (3 known properties: "prompt_tokens", "completion_tokens", "total_tokens"]) at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 22, column: 35] (through reference chain: com.plexpt.chatgpt.entity.chat.ChatCompletionResponse["usage"]->com.plexpt.chatgpt.entity.billing.Usage["completion_tokens_details"]) at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:45) at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:90)