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 d60e2bb commit 621c934Copy full SHA for 621c934
models/spring-ai-azure-openai/src/main/java/org/springframework/ai/azure/openai/AzureOpenAiChatModel.java
@@ -951,6 +951,7 @@ private ChatCompletionsResponseFormat toAzureResponseFormat(AzureOpenAiResponseF
951
var responseFormatJsonSchema = new ChatCompletionsJsonSchemaResponseFormatJsonSchema(jsonSchema.getName());
952
String jsonString = ModelOptionsUtils.toJsonString(jsonSchema.getSchema());
953
responseFormatJsonSchema.setSchema(BinaryData.fromString(jsonString));
954
+ responseFormatJsonSchema.setStrict(jsonSchema.getStrict());
955
return new ChatCompletionsJsonSchemaResponseFormat(responseFormatJsonSchema);
956
}
957
return new ChatCompletionsTextResponseFormat();
0 commit comments