11 Commits

Author SHA1 Message Date
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
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
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
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
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
9a05c6ac77
Add file and fine-tune api support (#6) 2022-04-19 18:50:44 -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