MCPcopy
hub / github.com/openai/openai-python / get_max_retries

Method get_max_retries

src/openai/_models.py:968–971  ·  view source on GitHub ↗
(self, max_retries: int)

Source from the content-addressed store, hash-verified

966 model_config: ClassVar[ConfigDict] = ConfigDict(arbitrary_types_allowed=True)
967
968 def get_max_retries(self, max_retries: int) -> int:
969 if isinstance(self.max_retries, NotGiven):
970 return max_retries
971 return self.max_retries
972
973 def _strip_raw_response_header(self) -> None:
974 if not is_given(self.headers):

Callers 3

requestMethod · 0.80
requestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected