Skip to content

Commit a39aadc

Browse files
LuizyHubmarkpollack
authored andcommitted
Fix typo in ChatClient docs
- correct response key from "generation" to "completion" in example code The example response in the documentation incorrectly uses "generation" as the response key. This commit updates it to "completion" to accurately reflect the API's actual response format.
1 parent 8750ba0 commit a39aadc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ When calling the application endpoint via curl, the result is:
234234
[source,bash]
235235
----
236236
❯ curl localhost:8080/ai/simple
237-
{"generation":"Why did the pirate go to the comedy club? To hear some arrr-rated jokes! Arrr, matey!"}
237+
{"completion":"Why did the pirate go to the comedy club? To hear some arrr-rated jokes! Arrr, matey!"}
238238
----
239239

240240
=== Default System Text with parameters

0 commit comments

Comments
 (0)