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)


169
170
171
# File 'lib/openai/internal/transport/base_client.rb', line 169

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})


184
185
186
# File 'lib/openai/internal/transport/base_client.rb', line 184

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)


187
188
189
# File 'lib/openai/internal/transport/base_client.rb', line 187

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)


178
179
180
# File 'lib/openai/internal/transport/base_client.rb', line 178

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)


175
176
177
# File 'lib/openai/internal/transport/base_client.rb', line 175

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)


181
182
183
# File 'lib/openai/internal/transport/base_client.rb', line 181

def max_retry_delay
  @max_retry_delay
end

#requesterOpenAI::Internal::Transport::PooledNetRequester (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.



191
192
193
# File 'lib/openai/internal/transport/base_client.rb', line 191

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)


172
173
174
# File 'lib/openai/internal/transport/base_client.rb', line 172

def timeout
  @timeout
end