| Name | Type | Description |
|---|---|---|
provider* | str | Provider name. |
Export this provider's stored API key into os.environ for SDK use.
LangChain's chat-model factories read credentials from process env vars, so a stored key only takes effect once it's copied onto the env var name registered for that provider. This is a no-op when the provider has no env-var mapping (custom auth) or no stored credential.
The env var is overwritten whether or not it was already set, matching
the precedence rule documented on resolve_provider_credential: a
credential the user typed in /auth is the most recent deliberate
action and should take effect.