Skip to content

Commit 9236913

Browse files
authored
Fixed typo in ollama-chat.adoc (#522)
1 parent 1e4973e commit 9236913

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chat/ollama-chat.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ var request = ChatRequest.builder("orca-mini")
283283
.build(),
284284
Message.builder(Role.USER)
285285
.withContent("What is the capital of Bulgaria and what is the size? "
286-
+ "What it the national anthem?")
286+
+ "What is the national anthem?")
287287
.build()))
288288
.withOptions(OllamaOptions.create().withTemperature(0.9f))
289289
.build();
@@ -294,10 +294,10 @@ ChatResponse response = ollamaApi.chat(request);
294294
var request2 = ChatRequest.builder("orca-mini")
295295
.withStream(true) // streaming
296296
.withMessages(List.of(Message.builder(Role.USER)
297-
.withContent("What is the capital of Bulgaria and what is the size? " + "What it the national anthem?")
297+
.withContent("What is the capital of Bulgaria and what is the size? " + "What is the national anthem?")
298298
.build()))
299299
.withOptions(OllamaOptions.create().withTemperature(0.9f).toMap())
300300
.build();
301301
302302
Flux<ChatResponse> streamingResponse = ollamaApi.streamingChat(request2);
303-
----
303+
----

0 commit comments

Comments
 (0)