Class: OpenAI::Internal::Transport::BaseClient

Inherits:
Object
  • Object
show all
Extended by:
Util::SorbetRuntimeSupport
Defined in:
sig/openai/internal/transport/base_client.rbs

Direct Known Subclasses

Client

Constant Summary collapse

OpenAI =

Returns:

  • (:request_options opts)

Instance Attribute Summary collapse

Method Summary

Methods included from Util::SorbetRuntimeSupport

const_missing, define_sorbet_constant!, sorbet_constant_defined?, to_sorbet_type, to_sorbet_type

Instance Attribute Details

#base_urlURI::Generic (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (URI::Generic)


200
201
202
# File 'lib/openai/internal/transport/base_client.rb', line 200

def base_url
  @base_url
end

#headersHash{String=>String} (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Hash{String=>String})


215
216
217
# File 'lib/openai/internal/transport/base_client.rb', line 215

def headers
  @headers
end

#idempotency_headerString? (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (String, nil)


218
219
220
# File 'lib/openai/internal/transport/base_client.rb', line 218

def idempotency_header
  @idempotency_header
end

#initial_retry_delayFloat (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Float)


209
210
211
# File 'lib/openai/internal/transport/base_client.rb', line 209

def initial_retry_delay
  @initial_retry_delay
end

#max_retriesInteger (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Integer)


206
207
208
# File 'lib/openai/internal/transport/base_client.rb', line 206

def max_retries
  @max_retries
end

#max_retry_delayFloat (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Float)


212
213
214
# File 'lib/openai/internal/transport/base_client.rb', line 212

def max_retry_delay
  @max_retry_delay
end

#requesterOpenAI::_HTTPClient (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:



222
223
224
# File 'lib/openai/internal/transport/base_client.rb', line 222

def requester
  @requester
end

#timeoutFloat (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Float)


203
204
205
# File 'lib/openai/internal/transport/base_client.rb', line 203

def timeout
  @timeout
end