File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/features/workspace/components Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ import {
14
14
} from "@stacklok/ui-kit" ;
15
15
import { twMerge } from "tailwind-merge" ;
16
16
import { useMutationPreferredModelWorkspace } from "../hooks/use-mutation-preferred-model-workspace" ;
17
- import { V1ListAllModelsForAllProvidersResponse } from "@/api/generated" ;
17
+ import {
18
+ MuxMatcherType ,
19
+ V1ListAllModelsForAllProvidersResponse ,
20
+ } from "@/api/generated" ;
18
21
import { FormEvent } from "react" ;
19
22
import {
20
23
LayersThree01 ,
@@ -138,7 +141,10 @@ export function WorkspaceMuxingModel({
138
141
path : { workspace_name : workspaceName } ,
139
142
body : rules . map ( ( { id, ...rest } ) => {
140
143
void id ;
141
- return { ...rest } ;
144
+
145
+ return rest . matcher
146
+ ? { ...rest , matcher_type : MuxMatcherType . FILENAME_MATCH }
147
+ : { ...rest } ;
142
148
} ) ,
143
149
} ,
144
150
{
You can’t perform that action at this time.
0 commit comments