From e328ceaa0f7fd6b5f21b81a66d10f2ae7e5e2eb8 Mon Sep 17 00:00:00 2001 From: csgulati09 Date: Tue, 19 Mar 2024 16:09:16 +0530 Subject: [PATCH] fix: model type for image route --- src/apis/images.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apis/images.ts b/src/apis/images.ts index 4090a55..784cf27 100644 --- a/src/apis/images.ts +++ b/src/apis/images.ts @@ -8,7 +8,7 @@ import OpenAI from "openai"; export interface ImagesBody { prompt: string; - model?: (string & unknown); + model?: string; n?: number | null; quality?: string; response_format?: string | null; @@ -21,7 +21,7 @@ export interface ImageEditParams { image: any; prompt: string; mask?: any; - model?: (string & object) | null; + model?: string | null; n?: number | null; response_format?: string | null; size?: string | null; @@ -30,7 +30,7 @@ export interface ImageEditParams { export interface ImageCreateVariationParams { image: any; - model?: (string & object) | null; + model?: string | null; n?: number | null; response_format?: string | null; size?: string | null;