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

Method _refresh_api_key

src/openai/_client.py:567–571  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

565 return super()._custom_auth(security)
566
567 def _refresh_api_key(self) -> str:
568 if self._api_key_provider is not None:
569 self.api_key = self._api_key_provider()
570
571 return self.api_key
572
573 def copy(
574 self,

Calls

no outgoing calls