20 novembro 2023

ChatGPT Integration with Spring Boot Application


OpenAI ChatGPT APIs
API (POST https://api.openai.com/v1/chat/completions) to generate responses to a prompt. 

What we need to send to invoke the OpenAI API?
  • Upon accessing the “Create Chat Completion” API link, the following information regarding endpoint, request, and response is visible.
  • Endpoint: POST https://api.openai.com/v1/chat/completions
  • Go to Playgroud and type any message e.g. “What is spring boot?”



https://platform.openai.com/api-keys