News

Autowire the OpenAiChatModel into a Spring component. Create a Prompt object with text to send to the GPT model. Obtain a ChatResponse by passing the Prompt to the chat model. Print the response to ...