File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ const VectorDB = {
1010 getVector : async ( key : string ) : Promise < any > => {
1111 return new Promise ( ( resolve , reject ) => {
1212 cbws . getWebsocket . send ( JSON . stringify ( {
13- "type" : "getVector" ,
13+ "type" :"vectordbEvent" ,
14+ "action" : "getVector" ,
1415 "message" : {
1516 item : key
1617 } ,
@@ -34,7 +35,8 @@ const VectorDB = {
3435 addVectorItem : async ( item : any ) : Promise < any > => {
3536 return new Promise ( ( resolve , reject ) => {
3637 cbws . getWebsocket . send ( JSON . stringify ( {
37- "type" : "addVectorItem" ,
38+ "type" :"vectordbEvent" ,
39+ "action" : "addVectorItem" ,
3840 "message" : {
3941 item : item
4042 } ,
@@ -57,7 +59,8 @@ const VectorDB = {
5759 queryVectorItem : async ( key : string ) : Promise < any > => {
5860 return new Promise ( ( resolve , reject ) => {
5961 cbws . getWebsocket . send ( JSON . stringify ( {
60- "type" : "queryVectorItem" ,
62+ "type" :"vectordbEvent" ,
63+ "action" : "queryVectorItem" ,
6164 "message" : {
6265 item : key
6366 } ,
You can’t perform that action at this time.
0 commit comments