From 60fdacef697f0e3a7ebaddc3e656e5007957ef16 Mon Sep 17 00:00:00 2001 From: CodingLuizy <104267255+LuizyHub@users.noreply.github.com> Date: Mon, 14 Oct 2024 17:57:37 +0900 Subject: [PATCH] fix(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. --- .../src/main/antora/modules/ROOT/pages/api/chatclient.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chatclient.adoc b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chatclient.adoc index 06ab23a8976..60d1335885b 100644 --- a/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chatclient.adoc +++ b/spring-ai-docs/src/main/antora/modules/ROOT/pages/api/chatclient.adoc @@ -234,7 +234,7 @@ When calling the application endpoint via curl, the result is: [source,bash] ---- ❯ curl localhost:8080/ai/simple -{"generation":"Why did the pirate go to the comedy club? To hear some arrr-rated jokes! Arrr, matey!"} +{"completion":"Why did the pirate go to the comedy club? To hear some arrr-rated jokes! Arrr, matey!"} ---- === Default System Text with parameters