Spaces:
Running
Running
remove hyperbolic for now and add novita AI
Browse files- public/providers/novita.svg +4 -0
- server.js +0 -2
- utils/providers.js +9 -4
public/providers/novita.svg
ADDED
|
server.js
CHANGED
@@ -299,13 +299,11 @@ app.post("/api/ask-ai", async (req, res) => {
|
|
299 |
}
|
300 |
}
|
301 |
// End the response stream
|
302 |
-
// return the total_tokens used to the client
|
303 |
res.end();
|
304 |
} catch (error) {
|
305 |
if (!res.headersSent) {
|
306 |
res.status(500).send({
|
307 |
ok: false,
|
308 |
-
// use generic error,
|
309 |
openSelectProvider: true,
|
310 |
message:
|
311 |
"An error occurred while processing your request. Please try again or switch provider.",
|
|
|
299 |
}
|
300 |
}
|
301 |
// End the response stream
|
|
|
302 |
res.end();
|
303 |
} catch (error) {
|
304 |
if (!res.headersSent) {
|
305 |
res.status(500).send({
|
306 |
ok: false,
|
|
|
307 |
openSelectProvider: true,
|
308 |
message:
|
309 |
"An error occurred while processing your request. Please try again or switch provider.",
|
utils/providers.js
CHANGED
@@ -14,9 +14,14 @@ export const PROVIDERS = {
|
|
14 |
max_tokens: 8_000,
|
15 |
id: "sambanova",
|
16 |
},
|
17 |
-
|
18 |
-
name: "
|
19 |
-
max_tokens:
|
20 |
-
id: "
|
21 |
},
|
|
|
|
|
|
|
|
|
|
|
22 |
};
|
|
|
14 |
max_tokens: 8_000,
|
15 |
id: "sambanova",
|
16 |
},
|
17 |
+
novita: {
|
18 |
+
name: "NovitaAI",
|
19 |
+
max_tokens: 16_000,
|
20 |
+
id: "novita",
|
21 |
},
|
22 |
+
// hyperbolic: {
|
23 |
+
// name: "Hyperbolic",
|
24 |
+
// max_tokens: 131_000,
|
25 |
+
// id: "hyperbolic",
|
26 |
+
// },
|
27 |
};
|