Class: OpenAI::Internal::Transport::BaseClient
- Inherits:
-
Object
- Object
- OpenAI::Internal::Transport::BaseClient
- Extended by:
- Util::SorbetRuntimeSupport
- Defined in:
- sig/openai/internal/transport/base_client.rbs
Direct Known Subclasses
Constant Summary collapse
- OpenAI =
Instance Attribute Summary collapse
- #base_url ⇒ URI::Generic readonly private
- #headers ⇒ Hash{String=>String} readonly private
- #idempotency_header ⇒ String? readonly private
- #initial_retry_delay ⇒ Float readonly private
- #log_level ⇒ Symbol readonly private
- #logger ⇒ #debug, ... readonly private
- #max_retries ⇒ Integer readonly private
- #max_retry_delay ⇒ Float readonly private
- #on_retry ⇒ Proc? readonly private
- #requester ⇒ OpenAI::_HTTPClient readonly private
- #timeout ⇒ Float? readonly private
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_url ⇒ URI::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.
247 248 249 |
# File 'lib/openai/internal/transport/base_client.rb', line 247 def base_url @base_url end |
#headers ⇒ Hash{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.
262 263 264 |
# File 'lib/openai/internal/transport/base_client.rb', line 262 def headers @headers end |
#idempotency_header ⇒ 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.
265 266 267 |
# File 'lib/openai/internal/transport/base_client.rb', line 265 def idempotency_header @idempotency_header end |
#initial_retry_delay ⇒ Float (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.
256 257 258 |
# File 'lib/openai/internal/transport/base_client.rb', line 256 def initial_retry_delay @initial_retry_delay end |
#log_level ⇒ Symbol (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.
271 272 273 |
# File 'lib/openai/internal/transport/base_client.rb', line 271 def log_level @log_level end |
#logger ⇒ #debug, ... (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.
268 269 270 |
# File 'lib/openai/internal/transport/base_client.rb', line 268 def logger @logger end |
#max_retries ⇒ Integer (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.
253 254 255 |
# File 'lib/openai/internal/transport/base_client.rb', line 253 def max_retries @max_retries end |
#max_retry_delay ⇒ Float (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.
259 260 261 |
# File 'lib/openai/internal/transport/base_client.rb', line 259 def max_retry_delay @max_retry_delay end |
#on_retry ⇒ Proc? (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.
274 275 276 |
# File 'lib/openai/internal/transport/base_client.rb', line 274 def on_retry @on_retry end |
#requester ⇒ OpenAI::_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.
278 279 280 |
# File 'lib/openai/internal/transport/base_client.rb', line 278 def requester @requester end |
#timeout ⇒ Float? (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.
250 251 252 |
# File 'lib/openai/internal/transport/base_client.rb', line 250 def timeout @timeout end |