Atoti Intelligence Essentials
This is part of the Atoti Intelligence Essentials offer.Compatible APIs
Many LLMs support the OpenAI API format. A model from another provider may be compatible with this configuration.Prerequisites
Before configuring OpenAI, ensure the following requirements are met:- An OpenAI account with API access, or a compatible provider
- An OpenAI API key
Add the dependency
Add the Spring AI OpenAI dependency to the project. Add the following topom.xml:
Configure the model
Configure the OpenAI model in the application configuration file. This example assumes thatLLM_API_KEY is passed as an environment variable or JVM argument.
Add the following to application.yaml:
Verify the configuration
After completing the configuration, verify that the LLM connection works:- Start the Atoti application.
- Check the application logs for successful LLM initialization.
- Test an AI feature such as Visualize This or Auto-Explain.