Before using the AI commands, make sure you have a developer token from OpenAI.
Create an account at OpenAI Signup and generate the token at API Keys.
This demo project defines a configuration property named spring.ai.openai.api-key that you should set to the value of the API Key obtained from openai.com.
spring.ai.openai.api-key=
Set the API key before you run the application.
Building and running
./mvnw spring-boot
curl localhost:8080/ai
A sample response is
Sure, here's a classic one for you:
Why don't scientists trust atoms?
Because they make up everything!
There are no datasets linked
There are no datasets linked