{"id":22427407,"url":"https://github.com/dashaun/spring-ai-multimodal-example","last_synced_at":"2025-08-01T10:32:00.525Z","repository":{"id":265828632,"uuid":"823444152","full_name":"dashaun/spring-ai-multimodal-example","owner":"dashaun","description":"From live stream on July 2nd, 2024","archived":false,"fork":false,"pushed_at":"2024-07-03T03:54:25.000Z","size":4128,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T05:35:18.518Z","etag":null,"topics":["spring-ai","spring-boot"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/live/2stvl7YKGGY?si=qQGing05DOoP0fbh","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dashaun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-07-03T03:51:12.000Z","updated_at":"2024-08-28T22:49:50.000Z","dependencies_parsed_at":"2024-12-02T00:46:39.946Z","dependency_job_id":"cf5de4ea-c9ed-4f4a-959e-be31808205e0","html_url":"https://github.com/dashaun/spring-ai-multimodal-example","commit_stats":null,"previous_names":["dashaun/spring-ai-multimodal-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashaun%2Fspring-ai-multimodal-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashaun%2Fspring-ai-multimodal-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashaun%2Fspring-ai-multimodal-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dashaun%2Fspring-ai-multimodal-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dashaun","download_url":"https://codeload.github.com/dashaun/spring-ai-multimodal-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228364059,"owners_count":17908319,"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":["spring-ai","spring-boot"],"created_at":"2024-12-05T20:11:46.220Z","updated_at":"2024-12-05T20:11:46.770Z","avatar_url":"https://github.com/dashaun.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spring AI Multimedia (with OpenAI GPT-4o)\n===\nThis is a simple demonstration of how to use Spring AI with OpenAI's\nGPT-4o model to answer questions about an image. The image provided\nis a weather forecast image in the project at\n`src/main/resources/static/forecast.jpg`.\n\nBefore running the application, you'll need to obtain an API key for \nOpenAI's API. Go to https://openai.com/, sign up for an account, and \ngenerate an API key. Once you have an API key, set it to the \n`OPENAI_API_KEY` environment variable. For example:\n\n~~~\n% export OPENAI_API_KEY=sk-...\n~~~\n\n(The actual API key will be quite a bit longer.)\n\nThe easiest way to run the application is to use the Spring Boot Maven\nplugin:\n\n~~~\n% ./mvnw spring-boot:run\n~~~\n\nOnce the application starts up, you can begin asking questions by \nPOSTing to the `/ask` endpoint. The body of the POST request should be\na simple JSON document with a \"question\" property.\n\nFor example, here's how you might ask a question using the `curl` \ncommand line tool:\n\n~~~\n% curl localhost:8080/ask \\\n  -H\"Content-type: application/json\" \\\n  -d'{\"question\":\"What would be a good day to wash my car?\"}'\n~~~\n\nOr, if using HTTPie:\n\n~~~\n% http :8080/ask question=\"What would be a good day to wash my car?\"\n~~~\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashaun%2Fspring-ai-multimodal-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdashaun%2Fspring-ai-multimodal-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdashaun%2Fspring-ai-multimodal-example/lists"}