@@ -25,7 +25,7 @@ workspace.
25
25
26
26
``` mermaid
27
27
flowchart LR
28
- Client(AI Assistant/ Agent)
28
+ Client(AI Assistant<br>or Agent)
29
29
CodeGate{CodeGate}
30
30
WS1[Workspace-A]
31
31
WS2[Workspace-B]
@@ -98,7 +98,7 @@ available models.
98
98
:::note
99
99
100
100
For locally-hosted models, you must use ` http://host.docker.internal ` instead of
101
- ` http://localhost `
101
+ ` http://localhost ` when running CodeGate with Docker Desktop.
102
102
103
103
:::
104
104
@@ -120,9 +120,13 @@ In the **Request Type** column, select the type of prompt to match:
120
120
- ` FIM ` matches fill-in-the-middle (completion) requests
121
121
- ` Chat ` matches chat prompts
122
122
123
- In the ** Filter by** column, enter a file name or extension string to match.
124
- This is an exact or ` endswith ` match, wildcards are not supported. For example,
125
- to match Python files, enter ` .py ` .
123
+ In the ** Filter by** column, enter a pattern for file name matching. Filters can
124
+ be an exact match or Unix shell-style wildcards
125
+ ([ reference] ( https://docs.python.org/3/library/fnmatch.html ) ). Common examples:
126
+
127
+ - Match a specific file extension: ` *.go `
128
+ - Match files ending in ".ts" and ".tsx": ` *.ts* `
129
+ - Match all Python files starting with "test* ": ` test*\*.py `
126
130
127
131
Finally, select the model to use for prompts that match the rule.
128
132
@@ -140,19 +144,19 @@ matched, the catch-all rule applies.
140
144
dark: useBaseUrl (' /img/features/muxing-rules-dark.webp' ),
141
145
}}
142
146
title = ' Example muxing rules'
143
- width = { ' 800px ' }
147
+ width = { ' 800 ' }
144
148
/>
145
- _ An example showing several muxing rules for different file types_
149
+ _ An example showing muxing rules for several file types_
146
150
147
151
Breaking down the above example:
148
152
149
- - Markdown files (` .md ` ) use the gpt-4o-mini model from the OpenAI provider for
150
- all request types .
151
- - Chat prompts for JavaScript files (` .js ` , but NOT ` .jsx ` ) use
152
- anthropic/claude-3.7-sonnet via OpenRouter .
153
- - FIM requests for all files (except ` .md ` since it's higher in the list) use
153
+ - All requests for Markdown files (` * .md` ) use the gpt-4o-mini model via the
154
+ OpenAI provider .
155
+ - Chat prompts for JavaScript and JSX files (` * .js* ` ) use claude-3.7-sonnet from
156
+ Anthropic .
157
+ - FIM requests for all files _ except _ ` * .md` ( since it's higher in the list) use
154
158
Ollama with the qwen2.5-coder:1.5b model.
155
- - All other requests use anthropic/claude-3.5-sonnet via OpenRouter.
159
+ - All other requests use deepseek-r1 via OpenRouter.
156
160
- A request containing both a JavaScript and Markdown file will match the ` .md `
157
161
rule first and use OpenAI.
158
162
0 commit comments