{"id":15728746,"url":"https://github.com/flashvayne/demo-chatgpt-spring-boot-starter","last_synced_at":"2025-05-13T03:55:24.168Z","repository":{"id":130688887,"uuid":"581027908","full_name":"flashvayne/demo-chatgpt-spring-boot-starter","owner":"flashvayne","description":"a demo project for [chatgpt-spring-boot-starter]","archived":false,"fork":false,"pushed_at":"2023-04-02T14:24:22.000Z","size":24,"stargazers_count":15,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T03:55:05.363Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/flashvayne.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":"2022-12-22T04:41:29.000Z","updated_at":"2025-02-05T07:19:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc539f28-8f2e-4ac8-995b-54b326082242","html_url":"https://github.com/flashvayne/demo-chatgpt-spring-boot-starter","commit_stats":{"total_commits":16,"total_committers":2,"mean_commits":8.0,"dds":0.0625,"last_synced_commit":"0e9418f0f452a55d98e0e614fe7c44b40a5e4ed0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashvayne%2Fdemo-chatgpt-spring-boot-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashvayne%2Fdemo-chatgpt-spring-boot-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashvayne%2Fdemo-chatgpt-spring-boot-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flashvayne%2Fdemo-chatgpt-spring-boot-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flashvayne","download_url":"https://codeload.github.com/flashvayne/demo-chatgpt-spring-boot-starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253870856,"owners_count":21976612,"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":[],"created_at":"2024-10-03T23:05:50.130Z","updated_at":"2025-05-13T03:55:24.106Z","avatar_url":"https://github.com/flashvayne.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# demo-chatgpt-spring-boot-starter\n\nThis is a demo project for [chatgpt-spring-boot-starter]https://github.com/flashvayne/chatgpt-spring-boot-starter\n\n## Demo online experience\nhttps://vayne.cc/chat/\n\n*My account's request times quota is exceeded, so my demo does not work now.\nYou can use your own account api-key to let your demo work.  \n\n\u003ci\u003e**The web page is written by ChatGPT for me, which is very simple. If anyone is good at the front end, you can create a pull request to help optimize it. Thank you.\nFile Path: src/main/resources/static/index.html\u003c/i\u003e\n## Usage\n## 1.clone the code.  \n## 2.set your chatgpt.api-key in \"application.yml\".  \n## 3.run it, and then you can try these api.  \n### 3.1 Single message  \n+ request\n```shell\ncurl --location --request GET '127.0.0.1:8080/send?message=how are you'\n```\n\n+ response\n```json\n{\n  \"code\": 200,\n  \"message\": \"success\",\n  \"data\": \"\\n\\nI'm doing well, thank you. How about you?\"\n}\n```\n### 3.2 Multi message\n+ request\n```shell\ncurl --location 'http://127.0.0.1:8080/multi/send' \\\n--header 'Content-Type: application/json' \\\n--data '[\n    {\n        \"role\": \"system\",\n        \"content\": \"You are a helpful assistant.\"\n    },\n    {\n        \"role\": \"user\",\n        \"content\": \"Who won the world series in 2020?\"\n    },\n    {\n        \"role\": \"assistant\",\n        \"content\": \"The Los Angeles Dodgers won the World Series in 2020.\"\n    },\n    {\n        \"role\": \"user\",\n        \"content\": \"Where was it played?\"\n    }\n]'\n```\n\n+ response\n```json\n{\n  \"code\": 200,\n  \"message\": \"success\",\n  \"data\": \"The 2020 World Series was played at Globe Life Field, in Arlington, Texas.\"\n}\n```\n\n### 3.3 Image generation\n+ request\n```shell\ncurl --location 'http://127.0.0.1:8080/image?prompt=A%20cute%20baby%20sea%20otter'\n```\n\n+ response\n```json\n{\n  \"code\": 200,\n  \"message\": \"success\",\n  \"data\": \"https://oaidalleapiprodscus.blob.core.windows.net/private/org-Xvt3LZrBsj5vD21Ro4B0xHbU/user-d73MPClst7tMOylhDkwKPRWc/img-5OY52AjLbGoJrmeofZ5wcxuK.png?st=2023-03-23T06%3A35%3A51Z\u0026se=2023-03-23T08%3A35%3A51Z\u0026sp=r\u0026sv=2021-08-06\u0026sr=b\u0026rscd=inline\u0026rsct=image/png\u0026skoid=6aaadede-4fb3-4698-a8f6-684d7786b067\u0026sktid=a48cca56-e6da-484e-a814-9c849652bcb3\u0026skt=2023-03-23T06%3A13%3A41Z\u0026ske=2023-03-24T06%3A13%3A41Z\u0026sks=b\u0026skv=2021-08-06\u0026sig=P3kcZIXq9y0PB5PaFxv4Jc91n0Zf2VQngYFAbY%2BLVqU%3D\"\n}\n```\n\n+ request\n```shell\ncurl --location 'http://127.0.0.1:8080/images?prompt=A%20cute%20baby%20sea%20otter\u0026n=2\u0026size=1\u0026format=url'\n```\n\n+ response\n```json\n{\n  \"code\": 200,\n  \"message\": \"success\",\n  \"data\": [\n    \"https://oaidalleapiprodscus.blob.core.windows.net/private/org-Xvt3LZrBsj5vD21Ro4B0xHbU/user-d73MPClst7tMOylhDkwKPRWc/img-WicmIRunQ2J5lpcX3T9VYmYY.png?st=2023-03-23T06%3A48%3A07Z\u0026se=2023-03-23T08%3A48%3A07Z\u0026sp=r\u0026sv=2021-08-06\u0026sr=b\u0026rscd=inline\u0026rsct=image/png\u0026skoid=6aaadede-4fb3-4698-a8f6-684d7786b067\u0026sktid=a48cca56-e6da-484e-a814-9c849652bcb3\u0026skt=2023-03-23T05%3A55%3A20Z\u0026ske=2023-03-24T05%3A55%3A20Z\u0026sks=b\u0026skv=2021-08-06\u0026sig=1MGQIv0IQkDZ2xHdLBdxzoWNC3QQxkG4T3DNpxQ/ZwA%3D\",\n    \"https://oaidalleapiprodscus.blob.core.windows.net/private/org-Xvt3LZrBsj5vD21Ro4B0xHbU/user-d73MPClst7tMOylhDkwKPRWc/img-6KURQa0u4JxgC0CNwFU27EwT.png?st=2023-03-23T06%3A48%3A07Z\u0026se=2023-03-23T08%3A48%3A07Z\u0026sp=r\u0026sv=2021-08-06\u0026sr=b\u0026rscd=inline\u0026rsct=image/png\u0026skoid=6aaadede-4fb3-4698-a8f6-684d7786b067\u0026sktid=a48cca56-e6da-484e-a814-9c849652bcb3\u0026skt=2023-03-23T05%3A55%3A20Z\u0026ske=2023-03-24T05%3A55%3A20Z\u0026sks=b\u0026skv=2021-08-06\u0026sig=vpKWaxBN6TnHZG9uqcQslq1ssIY417qxCd2iyXuZRE0%3D\"\n  ]\n}\n```\n\n# Author Info\nEmail: flashvayne@gmail.com\n\nBlog: https://vayne.cc\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashvayne%2Fdemo-chatgpt-spring-boot-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflashvayne%2Fdemo-chatgpt-spring-boot-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflashvayne%2Fdemo-chatgpt-spring-boot-starter/lists"}