Skip to content

Commit 31d776f

Browse files
committed
Remove explicit model requirement in OllamaChatModelIT#jsonSchemaFormatStructuredOutput
Signed-off-by: Ilayaperumal Gopinathan <[email protected]>
1 parent 7b5f9a6 commit 31d776f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

models/spring-ai-ollama/src/test/java/org/springframework/ai/ollama/OllamaChatModelIT.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,10 +260,7 @@ void jsonSchemaFormatStructuredOutput() {
260260
""");
261261
Map<String, Object> model = Map.of("country", "denmark");
262262
var prompt = userPromptTemplate.create(model,
263-
OllamaChatOptions.builder()
264-
.model(OllamaModel.LLAMA3_2.getName())
265-
.format(outputConverter.getJsonSchemaMap())
266-
.build());
263+
OllamaChatOptions.builder().format(outputConverter.getJsonSchemaMap()).build());
267264

268265
var chatResponse = this.chatModel.call(prompt);
269266

0 commit comments

Comments
 (0)