Skip to content

Commit fb418ac

Browse files
comment
1 parent 70e2dba commit fb418ac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public <T> T entity(@Nonnull final Class<T> type) {
129129
.getMessage()
130130
.getRefusal();
131131
if (refusal != null) {
132+
// https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#refusals
132133
throw new OrchestrationClientException(
133134
"The model refused to answer the question: " + refusal);
134135
}

0 commit comments

Comments
 (0)