Skip to content

Commit 29fa4bd

Browse files
committed
fix: matcher_type for filename
1 parent b3e197f commit 29fa4bd

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/features/workspace/components/workspace-muxing-model.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ import {
1414
} from "@stacklok/ui-kit";
1515
import { twMerge } from "tailwind-merge";
1616
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";
1821
import { FormEvent } from "react";
1922
import {
2023
LayersThree01,
@@ -138,7 +141,10 @@ export function WorkspaceMuxingModel({
138141
path: { workspace_name: workspaceName },
139142
body: rules.map(({ id, ...rest }) => {
140143
void id;
141-
return { ...rest };
144+
145+
return rest.matcher
146+
? { ...rest, matcher_type: MuxMatcherType.FILENAME_MATCH }
147+
: { ...rest };
142148
}),
143149
},
144150
{

0 commit comments

Comments
 (0)