@@ -73,7 +73,7 @@ export interface MultinetAxiosInstance extends AxiosInstance {
7373 updateSession ( workspace : string , sessionId : number , type : 'network' | 'table' , state : object ) : AxiosPromise < any > ;
7474 renameSession ( workspace : string , sessionId : number , type : 'network' | 'table' , name : string ) : AxiosPromise < any > ;
7575 getSession ( workspace : string , sessionId : number , type : 'network' | 'table' ) : AxiosPromise < any > ;
76- generateAltText ( verbosity : string , level : number , explain : string , data : object , title ?: string ) : AxiosPromise < any > ;
76+ generateAltText ( level : number , structured : boolean , data : object , title ?: string ) : AxiosPromise < any > ;
7777 networkBuildRequests ( workspace : string ) : AxiosPromise < number [ ] > ;
7878}
7979
@@ -270,16 +270,15 @@ export function multinetAxiosInstance(config: AxiosRequestConfig): MultinetAxios
270270 return this . get ( `workspaces/${ workspace } /sessions/${ type } /${ sessionId } /` ) ;
271271 } ;
272272
273- Proto . generateAltText = function ( verbosity : string , level : number , explain : string , data : object , title ?: string ) : AxiosPromise < any > {
273+ Proto . generateAltText = function ( level : number , structured : boolean , data : object , title ?: string ) : AxiosPromise < any > {
274274 const jsonString = JSON . stringify ( data ) ;
275275 const blob = new Blob ( [ jsonString ] , { type : 'application/json' } ) ;
276276 const file = new File ( [ blob ] , 'data.json' ) ;
277277
278278 const formData = new FormData ( ) ;
279279
280- formData . append ( 'verbosity ' , verbosity ) ;
280+ formData . append ( 'structured ' , structured . toString ( ) ) ;
281281 formData . append ( 'level' , level . toString ( ) ) ;
282- formData . append ( 'explain' , explain ) ;
283282 formData . append ( 'data' , file ) ;
284283 if ( title ) {
285284 formData . append ( 'title' , title ) ;
0 commit comments