@@ -9,15 +9,16 @@ export interface IRemixAI {
9
9
onInferenceDone ( ) :void ,
10
10
} & StatusEvents ,
11
11
methods : {
12
- code_completion ( context : string ) : Promise < string >
13
- code_insertion ( msg_pfx : string , msg_sfx : string ) : Promise < string > ,
14
- code_generation ( prompt : string ) : Promise < string | null > ,
15
- code_explaining ( code : string , context ?: string ) : Promise < string | null > ,
16
- error_explaining ( prompt : string ) : Promise < string | null > ,
17
- solidity_answer ( prompt : string ) : Promise < string | null > ,
12
+ code_completion ( prompt : string , context : string , params ? ) : Promise < string >
13
+ code_insertion ( msg_pfx : string , msg_sfx : string , params ? ) : Promise < string > ,
14
+ code_generation ( prompt : string , params ? ) : Promise < string | null > ,
15
+ code_explaining ( code : string , context ?: string , params ? ) : Promise < string | null > ,
16
+ error_explaining ( prompt : string , context ?: string , params ? ) : Promise < string | null > ,
17
+ solidity_answer ( prompt : string , params ? ) : Promise < string | null > ,
18
18
initializeModelBackend ( local : boolean , generalModel ?, completionModel ?) : Promise < void > ,
19
19
chatPipe ( pipeMessage : string ) : Promise < void > ,
20
20
ProcessChatRequestBuffer ( params :IParams ) : Promise < void > ,
21
21
initialize ( model1 ?:IModel , model2 ?:IModel , remoteModel ?:IRemoteModel , useRemote ?:boolean ) : Promise < void > ,
22
+ vulnerability_check ( prompt : string , params ?) : Promise < string | null > ,
22
23
}
23
24
}
0 commit comments