@@ -121,8 +121,8 @@ In the **Request Type** column, select the type of prompt to match:
121
121
- ` Chat ` matches chat prompts
122
122
123
123
In the ** Filter by** column, enter a file name or extension string to match.
124
- This is a simple substring match, wildcards are not supported. For example, to
125
- match Python files, enter ` .py ` .
124
+ This is an exact or ` endswith ` match, wildcards are not supported. For example,
125
+ to match Python files, enter ` .py ` .
126
126
127
127
Finally, select the model to use for prompts that match the rule.
128
128
@@ -131,17 +131,6 @@ request using the first matching rule. If the prompt contains multiple files in
131
131
context, the first rule that matches _ any_ of the files is used. If no filter is
132
132
matched, the catch-all rule applies.
133
133
134
- :::note More about precedence
135
-
136
- The order of the rules is important. If you have a more specific rule that
137
- should take precedence over a general rule, place it higher in the list.
138
-
139
- Keep substring matching in mind. For example, if you have a filter for ` .ts `
140
- files placed above a rule for ` .tsx ` files, the ` .tsx ` rule cannot be reached
141
- because the ` .ts ` filter matches first.
142
-
143
- :::
144
-
145
134
#### Example configuration
146
135
147
136
<ThemedImage
@@ -159,7 +148,7 @@ Breaking down the above example:
159
148
160
149
- Markdown files (` .md ` ) use the gpt-4o-mini model from the OpenAI provider for
161
150
all request types.
162
- - Chat prompts for JavaScript files (` .js ` , which also matches ` .jsx ` ) use
151
+ - Chat prompts for JavaScript files (` .js ` , but NOT ` .jsx ` ) use
163
152
anthropic/claude-3.7-sonnet via OpenRouter.
164
153
- FIM requests for all files (except ` .md ` since it's higher in the list) use
165
154
Ollama with the qwen2.5-coder:1.5b model.
0 commit comments