{"version":"2.1.207","anchor":"model-env-var-whitespace-trimming","canonical_anchor":"model-env-var-whitespace-trimming","heading":"Model Env Var Whitespace Trimming","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.207\/e\/model-env-var-whitespace-trimming","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.207","markdown":"### Model Env Var Whitespace Trimming\n\nValues of `ANTHROPIC_DEFAULT_SONNET_MODEL`, `ANTHROPIC_DEFAULT_OPUS_MODEL`, and similar model env vars are now trimmed before use. This prevents subtle mismatches when env vars are set with trailing newlines or spaces (common when set via `export VAR=$(command)`).\n\n**Evidence**\n\n`.trim()` applied to model env var reads (search for `\"ANTHROPIC_DEFAULT_SONNET_MODEL\"` in context of `.trim()`)"}