This repository demonstrates how to integrate Google Gemini with Spring AI, including:
- A basic chat client example.
- An advanced chat client example with MCP integration for tools support.
- Update
<your-gemini-api-key>
with your actual Gemini API key. - For the MCP integration example, replace the sample paths with the paths from your own file system where you want to perform file system-related operations.
/Users/username/Desktop
/Users/username/Downloads
For a complete walkthrough and explanation of the integration, read our blog: Integrating Google Gemini with Spring AI: Free LLM Access for Your POC
π₯ Visual Learning: Prefer video tutorials? Watch our step-by-step implementation guide on YouTube.
π Spring AI + Google Gemini: Free LLM Integration π