Skip to content

Commit

Permalink
fix: matcher_type for filename
Browse files Browse the repository at this point in the history
  • Loading branch information
peppescg committed Feb 13, 2025
1 parent d10be54 commit 4bfa93a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/features/workspace/components/workspace-muxing-model.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ import {
} from "@stacklok/ui-kit";
import { twMerge } from "tailwind-merge";
import { useMutationPreferredModelWorkspace } from "../hooks/use-mutation-preferred-model-workspace";
import { V1ListAllModelsForAllProvidersResponse } from "@/api/generated";
import {
MuxMatcherType,
V1ListAllModelsForAllProvidersResponse,
} from "@/api/generated";
import { FormEvent } from "react";
import {
LayersThree01,
Expand Down Expand Up @@ -138,7 +141,10 @@ export function WorkspaceMuxingModel({
path: { workspace_name: workspaceName },
body: rules.map(({ id, ...rest }) => {
void id;
return { ...rest };

return rest.matcher
? { ...rest, matcher_type: MuxMatcherType.FILENAME_MATCH }
: { ...rest };
}),
},
{
Expand Down

0 comments on commit 4bfa93a

Please sign in to comment.