We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70e2dba commit fb418acCopy full SHA for fb418ac
orchestration/src/main/java/com/sap/ai/sdk/orchestration/OrchestrationChatResponse.java
@@ -129,6 +129,7 @@ public <T> T entity(@Nonnull final Class<T> type) {
129
.getMessage()
130
.getRefusal();
131
if (refusal != null) {
132
+ // https://platform.openai.com/docs/guides/structured-outputs?api-mode=responses#refusals
133
throw new OrchestrationClientException(
134
"The model refused to answer the question: " + refusal);
135
}
0 commit comments