Git Product home page Git Product logo

hello-claude's Introduction

Claude 3.5 Sonnet with Spring AI Demo

This project demonstrates how to integrate Claude 3.5 Sonnet, Anthropic's advanced AI model, with Spring applications using Spring AI. It showcases the power of combining cutting-edge AI capabilities with the robust Spring framework.

๐Ÿš€ Quick Links

๐ŸŽฏ Project Purpose

This project serves as a practical example of how to:

  1. Set up a Spring Boot application with Spring AI
  2. Integrate Claude 3.5 Sonnet for AI-powered functionalities
  3. Generate Java code using AI prompts
  4. Automatically create test classes for generated code

It's designed to be a starting point for developers looking to incorporate AI capabilities into their Spring applications.

๐Ÿ› ๏ธ Features

  • Spring Boot setup with Spring AI dependencies
  • Integration with Claude 3.5 Sonnet
  • AI-powered Java code generation
  • Automatic test class creation
  • File writing service for generated code

๐Ÿ—๏ธ Project Structure

  • Application.java: Main Spring Boot application class
  • ChatController.java: REST controller for handling AI chat interactions
  • GeneratedCodeService.java: Service for writing generated code to files
  • Code.java: Record class for structuring generated code and tests

๐Ÿš€ Getting Started

  1. Clone this repository
  2. Set up your Anthropic API key in application.properties
  3. Run the Spring Boot application
  4. Access the root endpoint ("/") to generate a Java class with math operations

๐Ÿค Contributing

Feel free to fork this repository, make changes, and submit pull requests. If you find any issues or have suggestions for improvements, please open an issue.

๐Ÿ“˜ Learn More

For a detailed explanation of this project and how to get started with Claude 3.5 Sonnet and Spring AI, check out the blog post and YouTube video.

๐Ÿ“ƒ License

This project is licensed under the MIT License - see the LICENSE.md file for details.


Happy coding! ๐ŸŽ‰

hello-claude's People

Contributors

danvega avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.