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.
Be sure to add your OpenAI API Key to your GitHub repo's repository secret.
You can build the app by executing command or use the cicd github actions workflow:
mvn clean package
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