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.
204 205 206 |
# File 'lib/openai/internal/transport/base_client.rb', line 204 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.
219 220 221 |
# File 'lib/openai/internal/transport/base_client.rb', line 219 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.
222 223 224 |
# File 'lib/openai/internal/transport/base_client.rb', line 222 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.
213 214 215 |
# File 'lib/openai/internal/transport/base_client.rb', line 213 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.
228 229 230 |
# File 'lib/openai/internal/transport/base_client.rb', line 228 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.
225 226 227 |
# File 'lib/openai/internal/transport/base_client.rb', line 225 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.
210 211 212 |
# File 'lib/openai/internal/transport/base_client.rb', line 210 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.
216 217 218 |
# File 'lib/openai/internal/transport/base_client.rb', line 216 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.
231 232 233 |
# File 'lib/openai/internal/transport/base_client.rb', line 231 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.
235 236 237 |
# File 'lib/openai/internal/transport/base_client.rb', line 235 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.
207 208 209 |
# File 'lib/openai/internal/transport/base_client.rb', line 207 def timeout @timeout end |