You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This jsonString is not valid JSON. The "tools" array is as follows: "tools":[{"type":"file_search","type":"file_search"}]
Notice the duplicate type fields. I managed to get rid of the duplicate by modifiying the current annotation: @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
to @JsonTypeInfo( use = JsonTypeInfo.Id.NAME, property = "type", include = JsonTypeInfo.As.EXISTING_PROPERTY )
merging this change (and maybe updating other classes for similar issues) could be helpful.
The text was updated successfully, but these errors were encountered:
I have below code:
AssistantsClient ac = openAI.assistantsClient( ) ;
var aclist = ac.listAssistants( PaginationQueryParameters.none( ) ) ;
String jsonString = ObjectMapperSingleton.getInstance( ).writeValueAsString( aclist ) ;
This jsonString is not valid JSON. The "tools" array is as follows:
"tools":[{"type":"file_search","type":"file_search"}]
Notice the duplicate type fields. I managed to get rid of the duplicate by modifiying the current annotation:
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
to
@JsonTypeInfo( use = JsonTypeInfo.Id.NAME, property = "type", include = JsonTypeInfo.As.EXISTING_PROPERTY )
merging this change (and maybe updating other classes for similar issues) could be helpful.
The text was updated successfully, but these errors were encountered: