randydev commited on
Commit
eb92249
·
verified ·
1 Parent(s): 5a03baf

Update fluxai.js

Browse files
Files changed (1) hide show
  1. fluxai.js +4 -0
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
  */