plexpt/chatgpt-java

ChatGPT Java SDK。支持 GPT-4o、 GPT-5 API。开箱即用。An unofficial Java SDK for seamless integration with ChatGPT's GPT-5 and GPT-4 APIs. Ready-to-use, simple setup,...

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 1 hour ago
Type:Library / SDKCategory(s):Agent Frameworks & SDKsAI Agents & LLM Apps
Added to GitGenius on September 19th, 2026
Created on December 7th, 2022
Open Issues & Pull Requests: 48 (+0)
GitHub issues: Enabled
Number of forks: 683
Total Stargazers: 3,579 (+0)
Total Subscribers: 22 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 25.4 hours
Mean response time: 29.7 hours
90th percentile: 2.4 days
Tracked items: 3

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 7
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 530 days
Stale 30+ days: 7
Stale 90+ days: 7

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

ChatGPT Java is an unofficial Java SDK for integrating with OpenAI's ChatGPT APIs including GPT-4o and GPT-4 models. The SDK provides ready-to-use functionality with straightforward setup for building AI-powered applications in Java.

The tool solves the problem of accessing ChatGPT's capabilities from Java applications without building HTTP clients from scratch. It wraps OpenAI's API endpoints and handles authentication, request formatting, and response parsing. The SDK supports multiple GPT models, function calling, streaming conversations, token counting, and context management. It also includes features for rotating between multiple API keys and working with proxy configurations including reverse proxies.

Developers building Java applications that need ChatGPT integration should consider this SDK if they want to avoid low-level API work. It suits projects ranging from simple chatbots to complex applications requiring function calling and streaming responses. The tool provides both basic usage patterns for simple queries and advanced patterns for streaming with Spring's SseEmitter, context management, and token calculation. A reference implementation is available as a Spring Boot demo application.

The project maintains stable status and is distributed through Maven Central. Development activity shows ongoing support for new OpenAI models as they are released. The tool receives updates to add support for newly available GPT versions. Community engagement is facilitated through QQ group channels and WeChat contact options for collaboration inquiries.