Description
This PR corrects an error in the documentation for Spring AI's ChatClient
example. The response key in the curl example was incorrectly labeled as "generation"
instead of "completion"
, which better aligns with the API’s response format.
Changes
- Updated the response example to reflect
"completion"
as the correct key.
Issue Reference
Fixes #1533 Documentation: Correct response key from "generation" to "completion" in example code
Checklist
- [x] Signed the Contributor License Agreement (CLA)
- [x] Rebased changes on the latest
main
branch and squashed commits - [x] Reviewed and updated unit tests as needed (N/A for this documentation change)
- [x] Ran the build and confirmed that all tests pass
Thank you for reviewing this PR!
1533
Comment From: markpollack
thanks, merged in a39aadc327ba43a8f1c218701f7ccf0e5182ce9f