Samples based on Spring AI framework
The samples in this repository use OpenAI API as the implementation for Spring AI. In order to be able to make calls to the API, you will need a paid account in OpenAI Developer Platform and a generated API key.
- Project link: Chat Completion Intro
Basic example on how to use Spring Chat Completion API.
On startup, the application automatically calls the underlying API with a default Tell me a joke
message.