We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 379a4de commit f52ebb4Copy full SHA for f52ebb4
1 file changed
src/api/editImage.ts
@@ -212,9 +212,11 @@ export async function editImage(opts: EditImageOptions): Promise<EditImageResult
212
// default NSFW filter vetoes them otherwise. Caller's existing
213
// explicit setting wins (allows opt-out for test surfaces).
214
const existingReplicate =
215
- (effectiveProviderOptions as Record<string, unknown> | undefined)?.replicate as
+ ((effectiveProviderOptions as Record<string, unknown> | undefined)?.replicate as
216
| Record<string, unknown>
217
- | undefined;
+ | null
218
+ | undefined)
219
+ ?? undefined;
220
if (
221
existingReplicate === undefined
222
|| typeof existingReplicate.disableSafetyChecker === 'undefined'
0 commit comments