{"version":"2.1.168","anchor":"advisor-model-matching-improved","canonical_anchor":"advisor-model-matching-improved","heading":"Advisor Model Matching Improved","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.168\/e\/advisor-model-matching-improved","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.168","markdown":"### Advisor Model Matching Improved\n\nA new helper function was added that finds which advisor model family a given model name belongs to by doing a case-insensitive substring search against the list of valid advisor model families (`[\"opus\", \"sonnet\"]`). This replaces ad-hoc string comparisons and makes error messages for invalid advisor choices more consistent.\n\n**Evidence**\n\nNew function `DxA` performs `_sH.find((q) => $.includes(q))` where `_sH = [\"opus\", \"sonnet\"]` (search for `\"cannot be used as an advisor. Valid options\"`)."}