Commit Graph

80 Commits

Author SHA1 Message Date
YuCheng Hu ce616c7816 更新 POM 文件 2023-03-10 10:59:18 -05:00
YuCheng Hu a991582b80 更新自述文件,并且将 Key 配置到环境文件中 2023-03-10 09:07:44 -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 5967337229 Update the test folder and sub-task 2023-01-07 08:41:19 -05:00
YuCheng Hu 09aa7fdeb6 Update README file 2023-01-06 18:40:06 -05:00
YuCheng Hu 8babebac7a Update README file to include more info to project. 2023-01-06 18:36:55 -05:00
YuCheng Hu c796112903 Clean up the file we don't need it 2023-01-06 18:22:01 -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 65a30def30 Update Readme file 2023-01-06 14:40:52 -05:00
YuCheng Hu 85961e264c Update Readme file 2023-01-06 13:32:10 -05:00
YuCheng Hu 633b877145 update the git file 2023-01-06 13:27:55 -05:00
YuCheng Hu 3bf8d33cd7 Re-name the all package and start build base on those new package name 2023-01-06 13:24:09 -05:00
YuCheng Hu 062798c73a Delete all lombok from project and build as JDK version 11 2023-01-06 13:20:51 -05:00
YuCheng Hu f63a2438dc Add client module to package 2023-01-06 12:47:41 -05:00
YuCheng Hu 0dda9fc1f4 Delete all code use for lombok 2023-01-06 12:46:06 -05:00
YuCheng Hu 0fc2159293 New code for maven 2023-01-06 12:36: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 3f8f02f104
Upgrade github actions plugins (#64)
This should fix some deprecation warnings
2023-01-03 16:33:24 -06:00
Theo Kanning b9ff2dc177
Add test for CompletionRequest n parameter (#61) 2023-01-02 17:17:55 -06:00
Theo Kanning 68e75010fd
Gradle 8.0 deprecation fix (#60)
Switched to the new method of setting the main class.
2023-01-02 15:40:27 -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 48cd7272f7
Bump version to 0.8.1 (#43) 2022-12-04 13:41:14 -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 c76923926e
Remove deprecated endpoints from example project (#40)
The engine APIs are deprecated, and OpenAI will shut them down eventually
2022-12-04 12:44:30 -06:00
Robin Glauser 0caab13666
Updating example to not use new api (#33) 2022-12-04 12:39:31 -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 83df513ddc
Bump version to 0.8.0 (#29) 2022-08-22 14:32:40 -05:00
Theo Kanning 515a5fc47d
Add deprecation info to README (#28)
Answers, Classifications, Searchs, and old v1/engine endpoints are all deprecated.
2022-08-22 14:29:42 -05: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
Jacek Lipiec 1391f4074d
Fix typo in the LICENSE.md (#22)
As I assume it was by mistake; functionally it wasn't a MIT license :)
2022-08-19 09:31:56 -05:00
Theo Kanning 6f5a4ada76
Update version to 0.7.0 (#18) 2022-06-29 11:54:30 -05:00
Theo Kanning 4d5878db07
Add OpenAiService constructor that takes timeout parameter (#17)
If certain engines are timing out regularly, then OpenAiService needs a timeout parameter.
I also added a constructor that takes an OpenAiApi, and this will allow users to customize their api settings much more easily.

If we need more parameters later, I might add a builder for OpenAiService.

Based on feedback in https://github.com/TheoKanning/openai-java/issues/5
2022-06-29 11:43:29 -05:00
Theo Kanning 9e0a26b576
Update to version 0.6.0 (#16) 2022-04-28 16:53:41 -05:00
Theo Kanning bcfb5da378
Add supported apis to readme (#15) 2022-04-28 16:50:15 -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 ed2f1152e8
Add more tests and run them before each merge (#10)
These tests are very basic sanity checks
2022-04-28 14:49:54 -05:00
Theo Kanning d3074e113e Fix build action trigger (#9) 2022-04-28 14:19:42 -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