Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
1681ad8
1
Parent(s):
79f7ac0
fix url
Browse files
main.ts
CHANGED
|
@@ -74,8 +74,7 @@ app.post('/v1/images/generations', async (c) => {
|
|
| 74 |
const params = await c.req.json<OpenAI.ImageGenerateParams>();
|
| 75 |
console.log('request body:', params);
|
| 76 |
|
| 77 |
-
const
|
| 78 |
-
const targetUrl = `${HF_API_URL}${pathname}${search}/models/${params.model}`;
|
| 79 |
|
| 80 |
const { width = 1024, height = 1024 } = parseResolution(params.size as string);
|
| 81 |
|
|
|
|
| 74 |
const params = await c.req.json<OpenAI.ImageGenerateParams>();
|
| 75 |
console.log('request body:', params);
|
| 76 |
|
| 77 |
+
const targetUrl = `${HF_API_URL}/models/${params.model}`;
|
|
|
|
| 78 |
|
| 79 |
const { width = 1024, height = 1024 } = parseResolution(params.size as string);
|
| 80 |
|