Reject whitespace-only provider turns
Co-authored-by: codex <[email protected]>
This commit is contained in:
1 parent
2c81a9bfc4
commit
2e124c92af
1 file changed
+1
-1
@@ -764,7 +764,7 @@ export const make = Effect.fn("ProviderService.make")(function* (options?: Provi
|
||||
...parsed,
|
||||
attachments: parsed.attachments ?? [],
|
||||
};
|
||||
if (!input.input && input.attachments.length === 0) {
|
||||
if (!input.input?.trim() && input.attachments.length === 0) {
|
||||
return yield* new ProviderValidationError({
|
||||
operation: "ProviderService.sendTurn",
|
||||
issue: "Either input text or at least one attachment is required",
|
||||
|
||||
Reference in new issue
Block a user