We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
I've tried a few openAi sdks and this one shows the most promise.
My current use case is using it inside a lambda function, and this is ideal. And already live
However when the api errors for whatever reason it returns the error as a string.
It would be really helpful to have the response (or a mapped object) to check the status code is OK before carrying on with the function
The text was updated successfully, but these errors were encountered:
Basing the flow of execution on exceptions feels wrong to me
try { String translatedText = audioClient.createTranscript(request); return translatedText; } catch (OpenAIException e) { throw new RuntimeException(e); }
Sorry, something went wrong.
Hi @Adam1901 nice that you are using the library. Isn't e.error() what you are looking for? You can see the Error record at https://github.com/StefanBratanov/jvm-openai/blob/master/src/main/java/io/github/stefanbratanov/jvm/openai/OpenAIException.java
e.error()
Error
No branches or pull requests
Hi,
I've tried a few openAi sdks and this one shows the most promise.
My current use case is using it inside a lambda function, and this is ideal. And already live
However when the api errors for whatever reason it returns the error as a string.
It would be really helpful to have the response (or a mapped object) to check the status code is OK before carrying on with the function
The text was updated successfully, but these errors were encountered: