Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api新增返回字段后反序列化不兼容,Unrecognized field "usage" #259

Open
li5m opened this issue Jan 20, 2024 · 0 comments
Open

Comments

@li5m
Copy link

li5m commented Jan 20, 2024

java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "usage" (class com.unfbx.chatgpt.entity.assistant.run.RunStepResponse), not marked as ignorable (15 known properties: "cancelled_at", "completed_at", "created_at", "metadata", "thread_id", "status", "failed_at", "type", "id", "assistant_id", "expires_at", "object", "run_id", "last_error", "step_details"])
at [Source: (okhttp3.ResponseBody$BomAwareReader); line: 28, column: 20] (through reference chain: com.unfbx.chatgpt.entity.assistant.AssistantListResponse["data"]->java.util.ArrayList[0]->com.unfbx.chatgpt.entity.assistant.run.RunStepResponse["usage"])
at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46)
at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:93)
at io.reactivex.Single.blockingGet(Single.java:2870)
at com.unfbx.chatgpt.OpenAiClient.runSteps(OpenAiClient.java:1402)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant