View Source OpenAI.Behaviours.HttpClientBehaviour behaviour (OpenAI API Wrapper v0.1.3)

Link to this section Summary

Link to this section Callbacks

Link to this callback

multipart_request(request_methods, binary, list, t, keyword)

View Source
@callback multipart_request(
  OpenAI.HttpClient.request_methods(),
  binary(),
  [{binary(), binary()}],
  Multipart.t(),
  keyword()
) :: {:ok, map()} | {:error, OpenAI.Error.t() | term()}
Link to this callback

request(request_methods, binary, list, arg4, keyword)

View Source
@callback request(
  OpenAI.HttpClient.request_methods(),
  binary(),
  [{binary(), binary()}],
  map() | nil,
  keyword()
) :: {:ok, map()} | {:error, OpenAI.Error.t() | term()}