Skip to content

nevenc/spring-ai-quickstart-openai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-ai-quickstart-openai

This is an example of a simple Spring AI application that connects to OpenAI LLMs.

Requirements

  • OpenAI API key configured in src/main/resources/application.properties

Run the application

./mvnw spring-boot:run

Test the application

http :8080

HTTP/1.1 200 
Connection: keep-alive
Content-Length: 227
Content-Type: text/plain;charset=UTF-8
Date: Tue, 11 Apr 2025 08:05:00 GMT
Keep-Alive: timeout=60

I am an AI language model created by OpenAI, designed to assist with a
variety of questions and tasks. I can provide information, answer
questions, and engage in conversation on a wide range of topics.
How can I help you today?

References

About

This is an example of a simple Spring AI application that connects to OpenAI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages