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 = {
10
10
getVector : async ( key : string ) : Promise < any > => {
11
11
return new Promise ( ( resolve , reject ) => {
12
12
cbws . getWebsocket . send ( JSON . stringify ( {
13
- "type" : "getVector" ,
13
+ "type" :"vectordbEvent" ,
14
+ "action" : "getVector" ,
14
15
"message" : {
15
16
item : key
16
17
} ,
@@ -34,7 +35,8 @@ const VectorDB = {
34
35
addVectorItem : async ( item : any ) : Promise < any > => {
35
36
return new Promise ( ( resolve , reject ) => {
36
37
cbws . getWebsocket . send ( JSON . stringify ( {
37
- "type" : "addVectorItem" ,
38
+ "type" :"vectordbEvent" ,
39
+ "action" : "addVectorItem" ,
38
40
"message" : {
39
41
item : item
40
42
} ,
@@ -57,7 +59,8 @@ const VectorDB = {
57
59
queryVectorItem : async ( key : string ) : Promise < any > => {
58
60
return new Promise ( ( resolve , reject ) => {
59
61
cbws . getWebsocket . send ( JSON . stringify ( {
60
- "type" : "queryVectorItem" ,
62
+ "type" :"vectordbEvent" ,
63
+ "action" : "queryVectorItem" ,
61
64
"message" : {
62
65
item : key
63
66
} ,
You can’t perform that action at this time.
0 commit comments