Skip to content

Commit 5586fba

Browse files
authored
Update deno_index.ts
1 parent 4cb90d5 commit 5586fba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/deno_index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,12 @@ async function handleRequest(req: Request): Promise<Response> {
8080

8181
if (url.pathname.endsWith("/chat/completions") ||
8282
url.pathname.endsWith("/embeddings") ||
83-
url.pathname.endsWith("/models")) {
83+
url.pathname.endsWith("/models")) ||
84+
url.pathname.endsWith("/images/generations")) {
8485
return handleAPIRequest(req);
8586
}
8687

8788
return new Response('ok');
8889
}
8990

90-
Deno.serve(handleRequest);
91+
Deno.serve(handleRequest);

0 commit comments

Comments
 (0)