Skip to content

Commit d054403

Browse files
PMD
1 parent fb418ac commit d054403

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ public LLMChoice getChoice() {
121121
* @param <T> the type of the entity to deserialize to.
122122
*/
123123
@Nonnull
124-
public <T> T entity(@Nonnull final Class<T> type) {
125-
String refusal =
124+
public <T> T entity(@Nonnull final Class<T> type) throws OrchestrationClientException {
125+
final String refusal =
126126
((LLMModuleResultSynchronous) getOriginalResponse().getOrchestrationResult())
127127
.getChoices()
128128
.get(0)

0 commit comments

Comments
 (0)