openai-java icon indicating copy to clipboard operation
openai-java copied to clipboard

fix(client): add additional checks for the timeout

Open srivatsa-cfp opened this issue 2 years ago • 0 comments

  • Check if the value of token, url and timeout is null and return if they are null
  • Check if the value of timeout is negative, if it's negative return.
  • If this checks are not needed and only OpenAiService(final String token) is exposed, we should make OpenAiService(final String token, final String baseUrl, final Duration timeout) as private.

srivatsa-cfp avatar Feb 08 '23 03:02 srivatsa-cfp