chatgpt-java

ChatGPT Java SDK支持流式输出、Gpt插件、联网。支持OpenAI官方所有接口。ChatGPT的Java客户端。OpenAI GPT-3.5-Turb GPT-4 Api Client for Java

Java v1.1.5
3.5k stars  ·  812 forks  ·  Updated  ·  Apache-2.0
Install
# Maven: see https://github.com/Grt1228/chatgpt-java
plain text: /sdks/chatgpt-java/install.txt
View on GitHub
📄 Documentation
chatgptchatgpt-javagpt-35-turbogpt-4gpt-pluginsjavaopenai-apiopenai-chatgptopenai-imagesopenai-whispertiktoken-javawhisper
Supported APIs (1)

APIs for sampling from and fine-tuning language models

Version history All releases ↗

- bug修复

- 支持Assistant、Run、Thread、Message API - 支持同步文本转语音 示例参考:[v1_1_3/OpenAiClientTest.java](https://github.com/Grt1228/chatgpt-java/blob/develop/src/test…

- Dall-e-3 - 附加图片的ChatCompletion - 文本转语音tts - FineTuneJob - Tool Calls 示例参考:[OpenAiClientTest.java](https://github.com/Grt1228/chatgpt-java/blo…

- **支持GPT插件模式.参考实现[PluginTest](https://github.com/Grt1228/chatgpt-java/blob/1.0.14/src/test/java/com/unfbx/chatgpt/PluginTest.java)**

- moderations接口返回值更新 - bug修复 - 代码优化

- bug修复 - 支持funtion call - 支持最新模型 - 支持最新模型的token计算

🔥🔥🔥 #### ✔️更新支持最新版0613模型 #### ✔️更新支持最新功能Function Call 。示例参考:[OpenAiClientFunctionTest.java](https://github.com/Grt1228/chatgpt-java/blob/1.0.14/sr…

- 支持当key异常(失效、过期、封禁)时,自定义动态处理key - 支持key异常时的警告处理(钉钉、飞书......)

Quality signals
Score
Stars3.5k
Forks812
Last updated
LicenseApache-2.0
Supported APIs (1)
openai.com
Language
Java
Browse all Java SDKs →