{"id":17923873,"url":"https://github.com/lilittlecat/chatgpt","last_synced_at":"2025-03-24T02:33:21.969Z","repository":{"id":64450655,"uuid":"575408364","full_name":"LiLittleCat/ChatGPT","owner":"LiLittleCat","description":"A Java client for the ChatGPT API. ChatGPT 的一个 Java 客户端。","archived":false,"fork":false,"pushed_at":"2023-12-07T01:14:14.000Z","size":245,"stargazers_count":86,"open_issues_count":6,"forks_count":29,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-19T02:38:04.516Z","etag":null,"topics":["chatgpt","chatgpt-api","chatgpt-java","java"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LiLittleCat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-12-07T12:55:38.000Z","updated_at":"2024-12-19T09:12:59.000Z","dependencies_parsed_at":"2023-12-04T06:36:20.493Z","dependency_job_id":null,"html_url":"https://github.com/LiLittleCat/ChatGPT","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiLittleCat%2FChatGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiLittleCat%2FChatGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiLittleCat%2FChatGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiLittleCat%2FChatGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LiLittleCat","download_url":"https://codeload.github.com/LiLittleCat/ChatGPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245198937,"owners_count":20576471,"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":["chatgpt","chatgpt-api","chatgpt-java","java"],"created_at":"2024-10-28T20:45:55.958Z","updated_at":"2025-03-24T02:33:21.618Z","avatar_url":"https://github.com/LiLittleCat.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ChatGPT Java\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.lilittlecat/chatgpt?style=for-the-badge)](https://central.sonatype.com/artifact/com.lilittlecat/chatgpt)\n\n\n\nA Java client for the [ChatGPT API](https://platform.openai.com/docs/guides/chat).\n\n## Change Log\n\n### 1.0.3 - 2023-12-04\n\n- fix [#17](https://github.com/LiLittleCat/ChatGPT/issues/17)\n\n### 1.0.2 - 2023-04-24\n- Support message history\n\n### 1.0.1\n- Support GPT-4\n- Add custom API host\n\n### 1.0.0\n- Use official API with model `gpt-3.5-turbo`\n- Support proxy\n\n### 0.1.0\n- Initial release\n- Use unofficial API\n\n\n## Download\n\nDownload [the latest JAR](https://search.maven.org/remote_content?g=com.lilittlecat\u0026a=chatgpt\u0026v=LATEST) or grab via [Maven](https://central.sonatype.dev/artifact/com.lilittlecat/chatgpt/1.0.0):\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.lilittlecat\u003c/groupId\u003e\n  \u003cartifactId\u003echatgpt\u003c/artifactId\u003e\n  \u003cversion\u003e1.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nor Gradle:\n\n```groovy\nimplementation 'com.lilittlecat:chatgpt:1.0.2'\n```\n\n## Usage\n\n```java\nimport com.lilittlecat.chatgpt.offical.ChatGPT;\n\npublic class Main {\n   public static void main(String[] args) {\n      ChatGPT chatGPT = new ChatGPT(\"YOUR API KEY\");\n      String hello = chatGPT.ask(\"hello\");\n      System.out.println(hello); // will be \"\\n\\nHello! How may I assist you today?\"\n   }\n}\n```\n\nMore examples can be found in the [test](./src/test/java/ChatGPTTest.java).\n\n## Happy coding\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilittlecat%2Fchatgpt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flilittlecat%2Fchatgpt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flilittlecat%2Fchatgpt/lists"}