{"id":28100692,"url":"https://github.com/boburmirzo/apisix-java-chatgpt-openaiapi","last_synced_at":"2025-07-29T07:35:54.640Z","repository":{"id":174145733,"uuid":"651841499","full_name":"Boburmirzo/apisix-java-chatgpt-openaiapi","owner":"Boburmirzo","description":"Read the full tutorial","archived":false,"fork":false,"pushed_at":"2023-06-19T10:06:53.000Z","size":23,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-13T18:49:25.936Z","etag":null,"topics":["api-gateway","apisix","chatgpt","docker","java","spring-boot"],"latest_commit_sha":null,"homepage":"https://api7.ai/blog/managing-ai-powered-java-apps","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/Boburmirzo.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,"zenodo":null}},"created_at":"2023-06-10T09:01:27.000Z","updated_at":"2025-03-13T16:13:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2a474d1-34d1-4510-97aa-60bb095da0ee","html_url":"https://github.com/Boburmirzo/apisix-java-chatgpt-openaiapi","commit_stats":null,"previous_names":["boburmirzo/apisix-java-chatgpt-openaiapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Boburmirzo/apisix-java-chatgpt-openaiapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-java-chatgpt-openaiapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-java-chatgpt-openaiapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-java-chatgpt-openaiapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-java-chatgpt-openaiapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Boburmirzo","download_url":"https://codeload.github.com/Boburmirzo/apisix-java-chatgpt-openaiapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Boburmirzo%2Fapisix-java-chatgpt-openaiapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267646558,"owners_count":24121045,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api-gateway","apisix","chatgpt","docker","java","spring-boot"],"created_at":"2025-05-13T18:37:59.400Z","updated_at":"2025-07-29T07:35:54.632Z","avatar_url":"https://github.com/Boburmirzo.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Managing AI-powered Java App with API Management\n\nThis repo demonstrates how to use OpenAI ChatGPT APIs in Spring Boot, secure and manage the traffic\nwith Apache APISIX.\n\n### Prerequisites\n\nBefore we start, make sure you have the following:\n\n- Create an [OpenAI API Key](https://platform.openai.com/docs/api-reference/authentication): To access the OpenAI API, you will need to create an API Key. You can do this by logging into the OpenAI website and navigating to the API Key management page.\n- [Docker](https://www.docker.com/products/docker-desktop/) is installed on your machine to run APISIX and Spring Boot.\n\n### How to set up the project\n\nTo set up the project, we can simply run `docker compose up` command. Because we have already defined all necessary services in [docker-compose.yml](https://github.com/Boburmirzo/apisix-java-chatgpt-openaiapi/blob/main/docker-compose.yml). This file defines only 2 containers one for APISIX, and another for the Spring boot application. In this sample project, we run APISIX in [standalone mode](https://apisix.apache.org/docs/apisix/2.15/stand-alone/). There are other APISIX [installation options](https://apisix.apache.org/docs/apisix/installation-guide/) and [deployment modes](https://apisix.apache.org/docs/apisix/deployment-modes/) as well. Now APISIX as a separate service is running on `localhost:9080` and Spring Boot app on `localhost:8080`.\n\n### Community\n\n- 🙋 [Join the Apache APISIX Community](https://apisix.apache.org/docs/general/join/)\n- 🐦 [Follow us on Twitter](https://twitter.com/ApacheAPISIX)\n- 📝 [Find us on Slack](https://join.slack.com/t/the-asf/shared_invite/zt-vlfbf7ch-HkbNHiU_uDlcH_RvaHv9gQ)\n- 💁 [How to contribute page](https://apisix.apache.org/docs/general/how-to-contribute/)\n\n### About the author\n\n- Visit my blog: [www.iambobur.com](https://www.iambobur.com/)\n- Ask questions: [on Slack](https://join.slack.com/t/the-asf/shared_invite/zt-vlfbf7ch-HkbNHiU_uDlcH_RvaHv9gQ)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboburmirzo%2Fapisix-java-chatgpt-openaiapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboburmirzo%2Fapisix-java-chatgpt-openaiapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboburmirzo%2Fapisix-java-chatgpt-openaiapi/lists"}