View Source OpenAI.HttpClient (OpenAI API Wrapper v0.1.3)

Link to this section Summary

Link to this section Types

@type request_methods() ::
  :get | :post | :head | :patch | :delete | :options | :put | binary()

Link to this section Functions

Link to this function

multipart_request(method, url, headers, params, opts)

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

request(method, url, headers, params, opts)

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