Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
e240261
1
Parent(s):
a898362
json
Browse files
main.ts
CHANGED
|
@@ -45,7 +45,7 @@ app.post('/v1/chat/completions', async (c) => {
|
|
| 45 |
return await fetch(targetUrl, {
|
| 46 |
method: 'POST',
|
| 47 |
headers: headers,
|
| 48 |
-
body,
|
| 49 |
});
|
| 50 |
});
|
| 51 |
|
|
|
|
| 45 |
return await fetch(targetUrl, {
|
| 46 |
method: 'POST',
|
| 47 |
headers: headers,
|
| 48 |
+
body: JSON.stringify(body),
|
| 49 |
});
|
| 50 |
});
|
| 51 |
|