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 (
29
29
text = textArray . filter ( ( text ) => text ) . join ( '\n' ) ;
30
30
const not = parameters . not || false ;
31
31
32
- const response : any = await fetchPortkey (
32
+ const { response } : any = await fetchPortkey (
33
33
options ?. env || { } ,
34
34
PORTKEY_ENDPOINTS . GIBBERISH ,
35
35
parameters . credentials ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const handler: PluginHandler = async (
30
30
const languages = parameters . language ;
31
31
const not = parameters . not || false ;
32
32
33
- const result : any = await fetchPortkey (
33
+ const { response : result } : any = await fetchPortkey (
34
34
options ?. env || { } ,
35
35
PORTKEY_ENDPOINTS . LANGUAGE ,
36
36
parameters . credentials ,
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const handler: PluginHandler = async (
30
30
const categories = parameters . categories ;
31
31
const not = parameters . not || false ;
32
32
33
- const result : any = await fetchPortkey (
33
+ const { response : result } : any = await fetchPortkey (
34
34
options ?. env || { } ,
35
35
PORTKEY_ENDPOINTS . MODERATIONS ,
36
36
parameters . credentials ,
You can’t perform that action at this time.
0 commit comments