Skip to content

Commit b91ca8a

Browse files
authored
Merge branch 'main' into upgrade-steps
2 parents f3faced + e47d1f9 commit b91ca8a

File tree

5 files changed

+90
-84
lines changed

5 files changed

+90
-84
lines changed

docs/features/muxing.mdx

+17-13
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ workspace.
2525

2626
```mermaid
2727
flowchart 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

100100
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.
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

127131
Finally, 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

147151
Breaking 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

package-lock.json

+69-67
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@
3939
"@docusaurus/types": "3.7.0",
4040
"@eslint/js": "^9.21.0",
4141
"eslint": "^9.21.0",
42-
"eslint-config-prettier": "^10.0.1",
42+
"eslint-config-prettier": "^10.0.2",
4343
"eslint-plugin-mdx": "^3.1.5",
4444
"eslint-plugin-react": "^7.37.4",
4545
"globals": "^16.0.0",
4646
"husky": "^9.1.7",
4747
"lint-staged": "^15.4.3",
4848
"markdownlint-cli2": "^0.17.2",
49-
"prettier": "^3.5.2",
50-
"typescript": "~5.7.3",
51-
"typescript-eslint": "^8.25.0"
49+
"prettier": "^3.5.3",
50+
"typescript": "~5.8.2",
51+
"typescript-eslint": "^8.26.0"
5252
},
5353
"browserslist": {
5454
"production": [
4.23 KB
Binary file not shown.
5.94 KB
Binary file not shown.

0 commit comments

Comments
 (0)