Automatically inferred from env are UPSTAGE_API_KEY if not provided.
Copy
upstage_api_key:SecretStr=Field(default_factory=(secret_from_env('UPSTAGE_API_KEY',error_message='You must specify an api key. You can pass it an argument as `api_key=...` or set the environment variable `UPSTAGE_API_KEY`.')),alias='api_key')