Skip to content

Commit 1af40cf

Browse files
viacheslav-dobryninspring-builds
authored andcommitted
docs: fix syntax error in chat options builder example (#4915)
Signed-off-by: Viacheslav Dobrynin <[email protected]> (cherry picked from commit 9f7626f)
1 parent 330a35c commit 1af40cf

File tree

1 file changed

+2
-2
lines changed
  • spring-ai-docs/src/main/antora/modules/ROOT/pages/api

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ ChatModel chatModel = ...
424424
ToolCallback toolCallback = ...
425425
ChatOptions chatOptions = ToolCallingChatOptions.builder()
426426
.toolCallbacks(toolCallback)
427-
.build():
427+
.build();
428428
Prompt prompt = new Prompt("What day is tomorrow?", chatOptions);
429429
chatModel.call(prompt);
430430
----
@@ -546,7 +546,7 @@ ChatModel chatModel = ...
546546
ToolCallback toolCallback = ...
547547
ChatOptions chatOptions = ToolCallingChatOptions.builder()
548548
.toolCallbacks(toolCallback)
549-
.build():
549+
.build();
550550
Prompt prompt = new Prompt("What's the weather like in Copenhagen?", chatOptions);
551551
chatModel.call(prompt);
552552
----

0 commit comments

Comments
 (0)