OpenAi Api Pdf reader for Java

Hi @Skylark839 and welcome to the community!

I did a quick search and found this Java package, but looks like it’s been archived.

However, all OpenAI API examples, including Assistants API work with standard curl (HTTP) requests. So any Java library that is able to behave like curl equivalent (sending HTTP requests to some URI), should work fine.

For example, on this page, you can see how to do everything by selecting “curl” option. To upload a file for example, you would do this:

curl https://api.openai.com/v1/files \
  -H "Authorization: Bearer $OPENAI_API_KEY" \
  -F purpose="assistants" \
  -F file="@revenue-forecast.csv"

I am not up to speed with all the Java web features but any Java lib/module that can execute that should be good to go.