Skip to content

Commit

Permalink
fix: model type for image route
Browse files Browse the repository at this point in the history
  • Loading branch information
csgulati09 committed Mar 19, 2024
1 parent 7df99cb commit e328cea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apis/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit e328cea

Please sign in to comment.