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

Method _refresh_api_key

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

Source from the content-addressed store, hash-verified

1172 return super().custom_auth
1173
1174 async def _refresh_api_key(self) -> str:
1175 if self._api_key_provider is not None:
1176 self.api_key = await self._api_key_provider()
1177
1178 return self.api_key
1179
1180 def copy(
1181 self,

Calls

no outgoing calls