52 Commits

Author SHA1 Message Date
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) 0.8.0 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) 0.7.0 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) 0.6.0 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) 0.5.0 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
Theo Kanning
d410abe1b5 Update badge to show maven central 2021-03-09 21:31:03 -06: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
cdfceb0783
Fix readme links 2021-03-01 09:31:39 -06:00
Theo Kanning
c14c98c915
Update Readme
Fixed typo
2020-10-07 09:47:48 -05:00
Theo Kanning
9529928f0a
Update Readme
Changed badge color from that ugly orange to a nice green
2020-10-07 09:43:04 -05:00
Theo Kanning
70019fa7bb
Update Readme
Added version badge and download instructions
2020-10-07 09:38:16 -05:00
Theo Kanning
fe48e8cfc3 Add sources and javadocs jars to published artifacts
JCenter requires these
0.4.0
2020-10-06 18:14:35 -05:00
Theo Kanning
a893f80b75 Use release tag without prefixes
https://github.community/t/getting-release-details-from-within-an-actions-run/17552
Also fixed BINTRAY_KEY secret
0.3.0
2020-10-05 19:02:04 -05:00
Theo Kanning
4141fb942a Send library version via command line 2020-10-05 18:49:57 -05:00
Theo Kanning
3fdc96d6a5 Fix publish.yml
Now it will call the correct task and only fire once per release
2020-10-05 18:35:44 -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
0.2.0
2020-10-05 18:18:51 -05:00
Theo Kanning
0297fe0393
Add build Github Action (#1)
The default action should work fine
2020-10-05 17:54:18 -05:00
Theo Kanning
c2044c64f9 Include gradle-wrapper.jar
The default java gitignore doesn't include any jar files, and this missing file caused Github Actions builds to fail
2020-10-05 17:52:21 -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
0.1.0
2020-10-04 21:30:20 -05:00
Theo Kanning
779be1d98f Add bintray publishing tasks to gradle 2020-10-04 20:57:57 -05:00
Theo Kanning
427883b253 Removed unused dependencies 2020-10-04 19:51:35 -05:00
Theo Kanning
bb779e75c4 Update README
Explained the two different modules and how to run the examples
2020-10-04 19:50:49 -05:00
Theo Kanning
0ae8868485 Add comments explaining the api object fields 2020-10-04 19:24:24 -05:00
Theo Kanning
7c4739b45a Add MIT License
I don't care what people do with this
2020-10-04 18:35:04 -05:00
Theo Kanning
cdb7ae22c4 Add search objects and endpoint 2020-10-04 18:25:40 -05:00
Theo Kanning
61300727c8 Move data objects into separate openai-api package
People can import this if they want to make their own client or don't like retrofit
2020-10-04 18:09:48 -05:00
Theo Kanning
5d74cfde5a Add Completion api
Might add a builder or something to make setting specific parameters easier
2020-09-14 21:56:31 -05:00
Theo Kanning
13336e6cb6 Add lombok and retrieve engine endpoint 2020-09-14 21:29:30 -05:00