{"id":21557795,"url":"https://github.com/showpune/spring-petclinic-springai","last_synced_at":"2025-04-10T10:41:26.978Z","repository":{"id":244264663,"uuid":"814737300","full_name":"showpune/spring-petclinic-springai","owner":"showpune","description":"It is a spring ai LLM demo of petclinic","archived":false,"fork":false,"pushed_at":"2025-03-30T15:39:45.000Z","size":766,"stargazers_count":1,"open_issues_count":8,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-30T16:29:27.438Z","etag":null,"topics":["llm","petclinic","spring-boot","springai"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/showpune.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-13T15:45:21.000Z","updated_at":"2024-09-27T16:40:15.000Z","dependencies_parsed_at":"2024-06-21T02:02:02.434Z","dependency_job_id":"e13c0a36-7077-402d-9148-cab79a93879b","html_url":"https://github.com/showpune/spring-petclinic-springai","commit_stats":null,"previous_names":["showpune/spring-petclinic-springai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showpune%2Fspring-petclinic-springai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showpune%2Fspring-petclinic-springai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showpune%2Fspring-petclinic-springai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/showpune%2Fspring-petclinic-springai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/showpune","download_url":"https://codeload.github.com/showpune/spring-petclinic-springai/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248199322,"owners_count":21063654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["llm","petclinic","spring-boot","springai"],"created_at":"2024-11-24T08:13:14.567Z","updated_at":"2025-04-10T10:41:26.956Z","avatar_url":"https://github.com/showpune.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spring PetClinic Sample Application With Azure OpenAI and springAi\n\n## Understanding the Spring Petclinic application with a few diagrams\n\nThis is the spring ai version for spring petclinic, if you want to see a langchain4j version, please refer to [spring-petclinic-langchain4j](https://github.com/showpune/spring-petclinic-langchain4j)\n\n## Run Petclinic locally\n\nSpring Petclinic is a [Spring Boot](https://spring.io/guides/gs/spring-boot) application built\nusing [Maven](https://spring.io/guides/gs/maven/). You can build a jar\nfile and run it from the command line (it should work just as well with Java 17 or newer), Before you build the\napplication, you need to setup some openai properties in `src/main/resources/application.properties`:\n\n```bash\ngit clone https://github.com/showpune/spring-petclinic-springai.git\ncd spring-petclinic-springai\nmv src/main/resources/application.properties.example src/main/resources/application.properties\n```\n\nedit the `src/main/resources/application.properties` file and add the following properties:\n\n```properties\nspring.ai.azure.openai.api-key=**\nspring.ai.azure.openai.endpoint=https://***.openai.azure.com/\nspring.ai.azure.openai.chat.options.deployment-name=gpt-4\nspring.ai.azure.openai.chat.options.temperature=0.8\nspring.ai.chat.client.enabled=true\nspring.ai.azure.openai.embedding.options.deployment-name=text-embedding-ada-002\n```\n\nYou can build the application by running the following command:\n\n```bash\n./mvnw package\njava -jar target/*.jar\n```\n\nYou can then access the Petclinic at \u003chttp://localhost:8080/\u003e\n\u003cimg width=\"1042\" alt=\"petclinic-screenshot\" src=\"https://github.com/showpune/spring-petclinic-langchain4j/assets/1787505/52878caa-8bdd-48c4-a2e7-193f68054c3e\"\u003e\n\nAnd the OpenAI chatbot at \u003chttp://localhost:8080/chat.html\u003e.\n\u003cimg width=\"1042\" alt=\"petclinic-screenshot\" src=\"https://github.com/showpune/spring-petclinic-langchain4j/assets/1787505/11caef70-6411-4e72-9ae9-4902fb8ac96b\"\u003e\n\n## Workthrough of the chat agent\nGo to the owner page, you can query all owner information of \"Davis\"\n![image](https://github.com/showpune/spring-petclinic-springai/assets/1787505/ab3f7f10-a006-46c6-a363-637ea538bd5e)\n\n\nYou can also talk with the agent, query your information.\n![image](https://github.com/showpune/spring-petclinic-springai/assets/1787505/2591e97b-aee8-4dfc-85d8-5b62691a2c13)\n\nyou can also talk with Chinese\n![image](https://github.com/showpune/spring-petclinic-springai/assets/1787505/4a020ba8-5768-424b-b2e6-09812ecf9534)\n\nGo to the owner page you can see your information is added\n![image](https://github.com/showpune/spring-petclinic-springai/assets/1787505/b74b383e-680f-4e7d-ac1c-eaa32bd59c4e)\n\n## License\n\nThe Spring PetClinic sample application is released under version 2.0 of\nthe [Apache License](https://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowpune%2Fspring-petclinic-springai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshowpune%2Fspring-petclinic-springai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowpune%2Fspring-petclinic-springai/lists"}