Skip to content

Commit

Permalink
qfix api key
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryI committed May 22, 2024
1 parent a142cbc commit 86ac161
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wljs-snippets",
"version": "0.2.5",
"version": "0.2.6",
"description": "Snippets for WLJS editor",
"scripts": {
"build": "node --max-old-space-size=8192 ./node_modules/.bin/rollup --config rollup.config.mjs",
Expand Down
4 changes: 2 additions & 2 deletions src/AI.wl
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ checkToken := With[{
token = getToken
},
If[StringQ[token],
If[StringLength[token] > 41,
If[StringLength[token] > 10,
True
,
False
Expand All @@ -485,7 +485,7 @@ handle[data_Association] := Module[{}, With[{
Echo[chat];

If[!checkToken,
EventFire[data["Messanger"], "Warning", "OpenAI API Key was not found. Please, enter you valid one"];
EventFire[data["Messanger"], "Warning", "OpenAI API Key was not found. Please, enter a valid one"];
With[{request = CreateUUID[]},
EventHandler[request, {
"Success" -> Function[token,
Expand Down

0 comments on commit 86ac161

Please sign in to comment.