Reports where the effective API key comes from (preference, environment, or none).
Allows or refuses the use of an API key found in the environment. Refused by default: an
environment key is only used once the user has confirmed it, and setting this back to false
stops it being used immediately, wherever it would have been used.
Fetches the ids of the text-chat models OpenAI currently offers from its
/v1/modelsendpoint, retrying transient connection failures and caching a snapshot for offline use. The endpoint exposes no capability metadata, so non-chat models are filtered out heuristically. Returns an empty result when no key is configured; falls back to the cached snapshot on failure.