Skip to content

Java serverless function With Spring Cloud Function, AWS Lambda Java 17 support, and SnapStart

License

Notifications You must be signed in to change notification settings

wenqiglantz/openai-api-client-spring-cloud-function

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

openai-api-client-spring-cloud-function

A demo app to show how to integrate OpenAI API chat completion into Spring Cloud Function. Check out my Medium article for details: Going Serverless With Spring Cloud Function, AWS Lambda Java 17 Support, and SnapStart.

API Key

Be sure to add your OpenAI API Key to your GitHub repo's repository secret.

Run the app

You can build the app by executing command or use the cicd github actions workflow:

mvn clean package

How to access the running app?

Check the output for your Terraform IaC provisioning, the HTTP API Gateway provisioning should have the invoker URL in the output.

Use Postman, you can launch the app by navigating to endpoint:

  • [invoker-url]/chat-java17-snapstart

About

Java serverless function With Spring Cloud Function, AWS Lambda Java 17 support, and SnapStart

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published