Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Open AI API

Installation   |    Endpoints   |    Usage   |    Swagger   |    Technologies

Report bug · Request feature

Installation

Install the Maven dependency manager using the following tutorial: Maven Tutorial.

Install IntelliJ IDEA Community Edition to run the project: IntelliJ IDEA Community Edition Download.

Install Git and clone the project using Git Bash: Git Installation and Project Cloning Tutorial.

Endpoints

The application has a single endpoint: GET /startupidea/chat

GET /startupidea/chat

Usage

To make the application work, you need to include your OpenAI API license key. To do this, access the application.properties file in the project. Navigate to the root project directory and follow the path:

spring-boot-chatgpt → src → main → resources → application.properties

In the file, open it with a text editor and include the code: spring.ai.openai.api-key= your api key

To run the application, with the project open in IntelliJ, navigate to the class SpringBootChatgptApplication by following this path: src -> java -> br.com.migueldelgado.spring_boot_chatgpt -> SpringBootChatgptApplication

Once you're in the SpringBootChatgptApplication class, press Shift+F10 to run the application.

The question to be asked in the chat should be provided in the URL using the format:

Swagger

For easier usage of the application, an endpoint using the Swagger documentation tool has been provided: Swagger UI Endpoint.

On the page, scroll down to the "Try it out" section, click on it, and in the query parameter field, enter your input for the chat. image

Technologies

  • Java
  • Spring AI
  • Spring Web
  • Swagger

About

Aplicação integrada à API da OpenAI para geração de ideias de startups inovadoras. Utilizei tecnologias como Spring AI, Spring Web e Swagger para gerar documentação do projeto

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages