Update fluxai.js
Browse files
fluxai.js
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
import fetch from "node-fetch";
|
2 |
import * as config from './config.js'
|
3 |
|
|
|
|
|
|
|
|
|
4 |
/**
|
5 |
* @param {string} args - The input string
|
6 |
*/
|
|
|
1 |
import fetch from "node-fetch";
|
2 |
import * as config from './config.js'
|
3 |
|
4 |
+
if (!config.HUGGING_TOKEN) {
|
5 |
+
throw new Error("Missing variable: HUGGING_TOKEN");
|
6 |
+
}
|
7 |
+
|
8 |
/**
|
9 |
* @param {string} args - The input string
|
10 |
*/
|