@@ -25,7 +25,7 @@ workspace.
2525
2626``` mermaid
2727flowchart LR
28- Client(AI Assistant/ Agent)
28+ Client(AI Assistant<br>or Agent)
2929 CodeGate{CodeGate}
3030 WS1[Workspace-A]
3131 WS2[Workspace-B]
@@ -98,7 +98,7 @@ available models.
9898:::note
9999
100100For locally-hosted models, you must use ` http://host.docker.internal ` instead of
101- ` http://localhost `
101+ ` http://localhost ` when running CodeGate with Docker Desktop.
102102
103103:::
104104
@@ -120,9 +120,13 @@ In the **Request Type** column, select the type of prompt to match:
120120- ` FIM ` matches fill-in-the-middle (completion) requests
121121- ` Chat ` matches chat prompts
122122
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 `
126130
127131Finally, select the model to use for prompts that match the rule.
128132
@@ -140,19 +144,19 @@ matched, the catch-all rule applies.
140144 dark: useBaseUrl (' /img/features/muxing-rules-dark.webp' ),
141145 }}
142146 title = ' Example muxing rules'
143- width = { ' 800px ' }
147+ width = { ' 800 ' }
144148/>
145- _ An example showing several muxing rules for different file types_
149+ _ An example showing muxing rules for several file types_
146150
147151Breaking down the above example:
148152
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
154158 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.
156160- A request containing both a JavaScript and Markdown file will match the ` .md `
157161 rule first and use OpenAI.
158162
0 commit comments