Spaces:
Sleeping
Sleeping
T1ckbase commited on
Commit ·
188790c
1
Parent(s): c2996fe
main.ts
CHANGED
|
@@ -35,7 +35,7 @@ app.get('/', async (c) => {
|
|
| 35 |
// });
|
| 36 |
// console.log(chatCompletion.choices[0].message);
|
| 37 |
|
| 38 |
-
const response = await fetch('https://api-inference.huggingface.co/
|
| 39 |
method: 'POST',
|
| 40 |
headers: {
|
| 41 |
'content-type': 'application/json',
|
|
|
|
| 35 |
// });
|
| 36 |
// console.log(chatCompletion.choices[0].message);
|
| 37 |
|
| 38 |
+
const response = await fetch('https://api-inference.huggingface.co/v1/chat/completions', {
|
| 39 |
method: 'POST',
|
| 40 |
headers: {
|
| 41 |
'content-type': 'application/json',
|