fix bug where runAll() doesn't work for embed based returns

This commit is contained in:
mrjvs 2023-10-29 20:41:43 +01:00
parent 07f81707a3
commit 57a22c4a76
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ export async function runAllProviders(list: ProviderList, ops: ProviderRunnerOpt
...contextBase,
media: ops.media,
});
if (!isValidStream(output?.stream)) {
if (output?.stream && !isValidStream(output?.stream)) {
throw new NotFoundError('stream is incomplete');
}
if (output?.stream && !flagsAllowedInFeatures(ops.features, output.stream.flags)) {