Commit Graph

33 Commits

Author SHA1 Message Date
YuCheng Hu 8619ecc46e 修改编译使用的 JDK 为 JDK 17 2023-03-13 11:27:35 -04:00
YuCheng Hu ce616c7816 更新 POM 文件 2023-03-10 10:59:18 -05:00
YuCheng Hu 7d3b7c7eb1 更新联系方式使用 SharkFly 公众号来进行 OpenAI 的测试 2023-03-07 08:38:15 -05:00
YuCheng Hu 4fd7096e65 更新 Apache 使用的版本 2023-01-13 19:36:18 -05:00
YuCheng Hu f23170b45c update the maven repo 2023-01-06 16:17:12 -05:00
YuCheng Hu 9b907d0d9a update to new name 2023-01-06 14:41:47 -05:00
YuCheng Hu add90c312a Test to use maven 2023-01-06 12:11:02 -05:00
Theo Kanning e68a098b87
Add image generation, editing, and variations (#63)
https://beta.openai.com/docs/api-reference/images
2023-01-03 16:33:52 -06:00
Theo Kanning 5b3955d81a
Delete deprecated Answer, Classification, and Search APIs (#59)
OpenAI deprecated these months ago, and they have now stopped working.
2023-01-02 15:36:33 -06:00
Theo Kanning 1600841a58
Update lombok to 1.18.24 (#42)
Not sure why I never had compiling issues and others did, but I see no reason not to update this.
2022-12-04 12:55:17 -06:00
Theo Kanning 8d7f240010
Add logit bias parameter to CompletionRequest (#41) 2022-12-04 12:49:26 -06:00
Theo Kanning 5e14d4f62b
Add usage data to Completion and Embedding APIs (#39)
Also changed EditResult to use the new shared object
2022-12-04 12:37:28 -06:00
Theo Kanning 553e22fea2
Add Model support and new v1 endpoints (#27)
The old endpoints are marked as deprecated
Also marked response fields as public for easier access
2022-08-22 13:55:20 -05:00
Theo Kanning 252db27577
Update EditResult and fix the Edit test (#26)
OpenAI's example curl used an invalid engine, and the api returned a confusing error message.
Now everything works with text-davinci-edit-001
2022-08-19 11:05:12 -05:00
Theo Kanning ff06ffb309
Mark Answer, Completion, and Search APIs as deprecated (#25)
OpenAI has officially deprecated these APIs, but I'll leave them in as long as the endpoints still work
The engines api is also deprecated, but I'll get to that when I add
model support.
2022-08-19 10:49:22 -05:00
Theo Kanning d1f274800a
Add moderation support (#24)
Adding support for the new Moderations api https://beta.openai.com/docs/guides/moderation

Fixes https://github.com/TheoKanning/openai-java/issues/20
2022-08-19 10:32:33 -05:00
Theo Kanning 77219d497b
Add user to CompletionRequest (#23)
Fixes https://github.com/TheoKanning/openai-java/issues/19
2022-08-19 09:44:38 -05:00
Theo Kanning 7f39df6e0b
Add Edit request functionality (#14) 2022-04-28 16:48:33 -05:00
Theo Kanning 900e13bbda
Add embeddings support (#13) 2022-04-28 16:42:13 -05:00
Theo Kanning 9f5b64b151
Add answer support (#12) 2022-04-28 16:20:15 -05:00
Theo Kanning 103c34da94
Add classification support (#11) 2022-04-28 15:55:27 -05:00
Theo Kanning 4dd974cf98 Switch to publishing plugin (#8)
This should make publishing from CI easier from now on
2022-04-28 14:19:36 -05:00
Theo Kanning 9a05c6ac77
Add file and fine-tune api support (#6) 2022-04-19 18:50:44 -05:00
Theo Kanning b10b9c30f2 Fix CI build
Failed because everything in gradle.properties is only available locally
2021-03-09 21:28:16 -06:00
Theo Kanning 217116b819
Publish to OSSRH instead of Bintray (#4) 2021-03-09 20:52:48 -06:00
Theo Kanning fe48e8cfc3 Add sources and javadocs jars to published artifacts
JCenter requires these
2020-10-06 18:14:35 -05:00
Theo Kanning 4141fb942a Send library version via command line 2020-10-05 18:49:57 -05:00
Theo Kanning 4e070027c4 Add github action to publish artifacts after a release 2020-10-05 18:26:56 -05:00
Theo Kanning 618a097254
Add pom files to publishing steps (#2)
Necessary in order to be added to jcenter
2020-10-05 18:18:51 -05:00
Theo Kanning 00fa073446 Update package names
This matches the library groupId and makes it clear that this is not an OpenAI product
2020-10-05 17:44:18 -05:00
Theo Kanning d15dc718c2 Add builders to request objects
This is so much nicer
2020-10-05 17:41:16 -05:00
Theo Kanning 44ad76258c Add logprobs field 2020-10-05 17:39:34 -05:00
Theo Kanning f33aea18cb Rename modules to api and client
openai-api is unecessary here
2020-10-04 21:30:20 -05:00