Skip to content

Commit acdd9cf

Browse files
committed
Fix deserialization with custom addition
- try-catch based approach on Subtype annotation mentions - Also pass custom list of candidates
1 parent 057b121 commit acdd9cf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationChatResponse.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ public List<Message> getAllMessages() throws UnsupportedOperationException{
7373
throw new UnsupportedOperationException("Currently MultiChatMessage type not supported by convenience API");
7474
}
7575
}
76-
// TODO: Review { bypassing throwing OrchestrationClientException and
77-
// assumes AssistantMessage is always only type ChatMessage }
76+
7877
messages.add(new AssistantMessage(getChoice().getMessage().getContent()));
7978
return messages;
8079
}

0 commit comments

Comments
 (0)