.agents/skills/add-model-price/references/match-patterns.md
(?i)^(anthropic\/)?(claude-opus-4-6|(eu\\.|us\\.|apac\\.)?anthropic\\.claude-opus-4-6-v1(:0)?|claude-opus-4-6)$
Matches:
claude-opus-4-6anthropic/claude-opus-4-6anthropic.claude-opus-4-6-v1:0us.anthropic.claude-opus-4-6-v1:0(?i)^(anthropic\/)?(claude-opus-4-5-20251101|(eu\\.|us\\.|apac\\.)?anthropic\\.claude-opus-4-5-20251101-v1:0|claude-opus-4-5@20251101)$
(?i)^(openai\/)?(gpt-4o)$
(?i)^(google\/)?(gemini-2.5-pro)$
| Component | Purpose | Example |
|---|---|---|
(?i) | Case-insensitive match | gpt-4o and GPT-4O |
^...$ | Full-string match | Avoids partial matches |
(provider\/)? | Optional provider prefix | openai/gpt-4o |
| `(eu\. | us\. | apac\.)?` |
(:0)? | Optional version suffix | Bedrock model versions |
@date | Vertex AI version format | claude-3-5-sonnet@20240620 |
Use the bundled helper script:
node .agents/skills/add-model-price/scripts/test-match-pattern.mjs --model gpt-4o --accept gpt-4o openai/gpt-4o --reject gpt-4o-mini