File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const handler: PluginHandler = async (
2929 text = textArray . filter ( ( text ) => text ) . join ( '\n' ) ;
3030 const not = parameters . not || false ;
3131
32- const response : any = await fetchPortkey (
32+ const { response } : any = await fetchPortkey (
3333 options ?. env || { } ,
3434 PORTKEY_ENDPOINTS . GIBBERISH ,
3535 parameters . credentials ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const handler: PluginHandler = async (
3030 const languages = parameters . language ;
3131 const not = parameters . not || false ;
3232
33- const result : any = await fetchPortkey (
33+ const { response : result } : any = await fetchPortkey (
3434 options ?. env || { } ,
3535 PORTKEY_ENDPOINTS . LANGUAGE ,
3636 parameters . credentials ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const handler: PluginHandler = async (
3030 const categories = parameters . categories ;
3131 const not = parameters . not || false ;
3232
33- const result : any = await fetchPortkey (
33+ const { response : result } : any = await fetchPortkey (
3434 options ?. env || { } ,
3535 PORTKEY_ENDPOINTS . MODERATIONS ,
3636 parameters . credentials ,
You can’t perform that action at this time.
0 commit comments