@@ -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 , explain : string , data : object , title ?: string , level ?: number ) : AxiosPromise < any > ;
76+ generateAltText ( structured : boolean , data : object , title ?: string , level ?: number ) : AxiosPromise < any > ;
7777 networkBuildRequests ( workspace : string ) : AxiosPromise < number [ ] > ;
7878}
7979
@@ -270,15 +270,14 @@ export function multinetAxiosInstance(config: AxiosRequestConfig): MultinetAxios
270270 return this . get ( `workspaces/${ workspace } /sessions/${ type } /${ sessionId } /` ) ;
271271 } ;
272272
273- Proto . generateAltText = function ( verbosity : string , explain : string , data : object , title ?: string , level ?: number ) : AxiosPromise < any > {
273+ Proto . generateAltText = function ( structured : boolean , data : object , title ?: string , level ?: number ) : 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 ) ;
281- formData . append ( 'explain' , explain ) ;
280+ formData . append ( 'structured' , structured . toString ( ) ) ;
282281 formData . append ( 'data' , file ) ;
283282 if ( title ) {
284283 formData . append ( 'title' , title ) ;
0 commit comments