LordXido commited on
Commit
357c6cd
·
verified ·
1 Parent(s): 0a8afdf

Create llm.js

Browse files
Files changed (1) hide show
  1. llm.js +7 -0
llm.js ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ export async function llmIntent(text){
2
+ // Replace with your private endpoint later
3
+ if(text.includes("explore")){
4
+ return {type:"web", url:"wikipedia.org"};
5
+ }
6
+ return {type:"inject", v:1.2};
7
+ }