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 83e2785 commit a1b7d5eCopy full SHA for a1b7d5e
models/spring-ai-azure-openai/src/main/java/org/springframework/ai/azure/openai/AzureOpenAiChatModel.java
@@ -959,6 +959,7 @@ private ChatCompletionsResponseFormat toAzureResponseFormat(AzureOpenAiResponseF
959
var responseFormatJsonSchema = new ChatCompletionsJsonSchemaResponseFormatJsonSchema(jsonSchema.getName());
960
String jsonString = ModelOptionsUtils.toJsonString(jsonSchema.getSchema());
961
responseFormatJsonSchema.setSchema(BinaryData.fromString(jsonString));
962
+ responseFormatJsonSchema.setStrict(jsonSchema.getStrict());
963
return new ChatCompletionsJsonSchemaResponseFormat(responseFormatJsonSchema);
964
}
965
return new ChatCompletionsTextResponseFormat();
0 commit comments