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 698eab8 commit f694f40Copy full SHA for f694f40
sample-code/spring-app/src/test/java/com/sap/ai/sdk/app/services/OpenAiServiceV2.java
@@ -139,7 +139,7 @@ public CreateChatCompletionResponse chatCompletionToolExecution(
139
Map<String, Object> schemaMap;
140
try {
141
var schema = jsonSchemaGenerator.generateSchema(WeatherMethod.Request.class);
142
- schemaMap = JACKSON.convertValue(schema, new TypeReference<Map<String, Object>>() {});
+ schemaMap = JACKSON.convertValue(schema, new TypeReference<>() {});
143
} catch (JsonMappingException e) {
144
throw new IllegalArgumentException("Could not generate schema for WeatherMethod.Request", e);
145
}
0 commit comments