diff --git a/src/lib/server/tools/index.ts b/src/lib/server/tools/index.ts index 59142952d6f..ca9964715d3 100644 --- a/src/lib/server/tools/index.ts +++ b/src/lib/server/tools/index.ts @@ -61,7 +61,7 @@ const toolInputSchema = toolInputBaseSchema.and( z.object({ type: IOType }).or( z.object({ type: z.literal("file"), - mimeTypes: z.string().nonempty(), + mimeTypes: z.string().min(1), }) ) ); diff --git a/src/routes/tools/ToolEdit.svelte b/src/routes/tools/ToolEdit.svelte index a9688206859..9b92dc3ce85 100644 --- a/src/routes/tools/ToolEdit.svelte +++ b/src/routes/tools/ToolEdit.svelte @@ -367,6 +367,10 @@
++ {getError(`inputs`, form)} +
+ {#each editableTool.inputs as input, inputIdx} {@const parameter = endpoint.parameters.find( (parameter) => parameter.parameter_name === input.name @@ -435,9 +439,6 @@ bind:value={input.description} disabled={readonly} /> -- {getError(`${input.name}-description`, form)} -
{/if} {#if input.paramType === "optional" || input.paramType === "fixed"} @@ -467,9 +468,6 @@ bind:value={input.value} /> {/if} -- {getError(`${input.name}-${isOptional ? "default" : "value"}`, form)} -
{/if} {#if input.type === "file"}