Skip to content

Commit 7b842ad

Browse files
authored
Merge pull request #4574 from Kilo-Org/fix/model-settings-tool-names-to-string
fix: change z.enum(toolNames) to z.string() in model-settings
2 parents e1c0c1d + 46359f4 commit 7b842ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/api/providers/kilocode/model-settings.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { ModelInfo, toolNames } from "@roo-code/types"
1+
import { ModelInfo } from "@roo-code/types"
22
import { z } from "zod"
33

44
export const ModelSettingsSchema = z.object({
5-
included_tools: z.array(z.enum(toolNames)).nullish(),
6-
excluded_tools: z.array(z.enum(toolNames)).nullish(),
5+
included_tools: z.array(z.string()).nullish(),
6+
excluded_tools: z.array(z.string()).nullish(),
77
})
88

99
export const VersionedModelSettingsSchema = z.record(z.string(), ModelSettingsSchema)

0 commit comments

Comments
 (0)