Spring Boot 3.2.0 project to access the Claude API and Google's Gemini Pro and Gemini Pro Vision APIs
- Requires Java 17+
- Set your Claude API key as an environment variable called ANTHROPIC_API_KEY
- Set your Google API key as an environment variable called GOOGLEAI_API_KEY
Good luck!
It's an extension from https://kousenit.org/2023/12/10/a-really-easy-way-to-add-ai-to-java/