Working with some models using Responses Api, I got error:
Caused by: io.github.sashirestela.cleverclient.support.CleverClientException: Cannot convert the Json {"id":"resp_bGl0ZWxsbTpjdXN0b21fbGxtX3Byb3ZpZGVyOnZlcnRleF9haTttb2RlbF9pZDphMTBlNjUxYjI0M2NjNzYwYzc1NTkyNzRkYWU5ZTg3M2YwY2YzNmJmNmQ1MWUyOGY0OGU3ZTgyYTNmOTMwMWY0O3Jlc3BvbnNlX2lkOmNoYXRjbXBsLTg3ZTMzMGNlLTE2ZmUtNDg5MC04OThkLTRiOWY4MWEyY2Y5Ng==","created_at":1760478938.0,"error":null,"incomplete_details":null,"instructions":null,"metadata":{},"model":"claude-sonnet-4@20250514","object":"chat.completion","output":[{"type":"message","id":"chatcmpl-87e330ce-16fe-4890-898d-4b9f81a2cf96","status":"stop","role":"assistant","content":[{"type":"output_text","text":"Bitte helfen Sie mir, eine günstige Krankenversicherung für meine Katze zu finden!","annotations":[]}]}],"parallel_tool_calls":false,"temperature":0.0,"tool_choice":"auto","tools":[],"top_p":null,"max_output_tokens":null,"previous_response_id":null,"reasoning":{},"status":"completed","text":{"format":null,"verbosity":null},"truncation":null,"usage":{"input_tokens":31,"input_tokens_details":null,"output_tokens":31,"output_tokens_details":null,"total_tokens":62},"user":null} to class io.github.sashirestela.openai.domain.response.Response.
at io.github.sashirestela.cleverclient.util.JsonUtil.jsonToObject(JsonUtil.java:55)
at io.github.sashirestela.cleverclient.client.JavaHttpClientAdapter.lambda$fillFunctionsByCategory$21(JavaHttpClientAdapter.java:194)
at io.github.sashirestela.cleverclient.client.JavaHttpClientAdapter.lambda$sendAsync$0(JavaHttpClientAdapter.java:83)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
... 10 more
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type io.github.sashirestela.openai.domain.response.Input$ItemStatus from String "stop": not one of the values accepted for Enum class: [completed, incomplete, in_progress]
at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: io.github.sashirestela.openai.domain.response.Response["output"]->java.util.ArrayList[0]->io.github.sashirestela.openai.domain.response.Input$Item$OutputMessageItem["status"])
at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:67)
at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:1986)
at com.fasterxml.jackson.databind.DeserializationContext.handleWeirdStringValue(DeserializationContext.java:1272)
at com.fasterxml.jackson.databind.deser.std.EnumDeserializer._deserializeAltString(EnumDeserializer.java:446)
at com.fasterxml.jackson.databind.deser.std.EnumDeserializer._fromString(EnumDeserializer.java:303)
at com.fasterxml.jackson.databind.deser.std.EnumDeserializer.deserialize(EnumDeserializer.java:272)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:137)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:302)
Please add a STOP value to io.github.sashirestela.openai.domain.response.Input.ItemStatus, such as:
public static enum ItemStatus {
@JsonProperty("stop")
STOP,
@JsonProperty("in_progress")
IN_PROGRESS,
@JsonProperty("completed")
COMPLETED,
@JsonProperty("incomplete")
INCOMPLETE;
}
Thanks in advance!
Working with some models using Responses Api, I got error:
Caused by: io.github.sashirestela.cleverclient.support.CleverClientException: Cannot convert the Json {"id":"resp_bGl0ZWxsbTpjdXN0b21fbGxtX3Byb3ZpZGVyOnZlcnRleF9haTttb2RlbF9pZDphMTBlNjUxYjI0M2NjNzYwYzc1NTkyNzRkYWU5ZTg3M2YwY2YzNmJmNmQ1MWUyOGY0OGU3ZTgyYTNmOTMwMWY0O3Jlc3BvbnNlX2lkOmNoYXRjbXBsLTg3ZTMzMGNlLTE2ZmUtNDg5MC04OThkLTRiOWY4MWEyY2Y5Ng==","created_at":1760478938.0,"error":null,"incomplete_details":null,"instructions":null,"metadata":{},"model":"claude-sonnet-4@20250514","object":"chat.completion","output":[{"type":"message","id":"chatcmpl-87e330ce-16fe-4890-898d-4b9f81a2cf96","status":"stop","role":"assistant","content":[{"type":"output_text","text":"Bitte helfen Sie mir, eine günstige Krankenversicherung für meine Katze zu finden!","annotations":[]}]}],"parallel_tool_calls":false,"temperature":0.0,"tool_choice":"auto","tools":[],"top_p":null,"max_output_tokens":null,"previous_response_id":null,"reasoning":{},"status":"completed","text":{"format":null,"verbosity":null},"truncation":null,"usage":{"input_tokens":31,"input_tokens_details":null,"output_tokens":31,"output_tokens_details":null,"total_tokens":62},"user":null} to class io.github.sashirestela.openai.domain.response.Response.
at io.github.sashirestela.cleverclient.util.JsonUtil.jsonToObject(JsonUtil.java:55)
at io.github.sashirestela.cleverclient.client.JavaHttpClientAdapter.lambda$fillFunctionsByCategory$21(JavaHttpClientAdapter.java:194)
at io.github.sashirestela.cleverclient.client.JavaHttpClientAdapter.lambda$sendAsync$0(JavaHttpClientAdapter.java:83)
at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646)
... 10 more
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Cannot deserialize value of type
io.github.sashirestela.openai.domain.response.Input$ItemStatusfrom String "stop": not one of the values accepted for Enum class: [completed, incomplete, in_progress]at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: io.github.sashirestela.openai.domain.response.Response["output"]->java.util.ArrayList[0]->io.github.sashirestela.openai.domain.response.Input$Item$OutputMessageItem["status"])
at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:67)
at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:1986)
at com.fasterxml.jackson.databind.DeserializationContext.handleWeirdStringValue(DeserializationContext.java:1272)
at com.fasterxml.jackson.databind.deser.std.EnumDeserializer._deserializeAltString(EnumDeserializer.java:446)
at com.fasterxml.jackson.databind.deser.std.EnumDeserializer._fromString(EnumDeserializer.java:303)
at com.fasterxml.jackson.databind.deser.std.EnumDeserializer.deserialize(EnumDeserializer.java:272)
at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:137)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:302)
Please add a STOP value to io.github.sashirestela.openai.domain.response.Input.ItemStatus, such as:
public static enum ItemStatus {
@JsonProperty("stop")
STOP,
@JsonProperty("in_progress")
IN_PROGRESS,
@JsonProperty("completed")
COMPLETED,
@JsonProperty("incomplete")
INCOMPLETE;
}
Thanks in advance!