File tree Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Expand file tree Collapse file tree 4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ COPY package*.json ./
9
9
COPY patches ./
10
10
11
11
# Upgrade system packages
12
- RUN apk update && apk upgrade --no-cache
12
+ RUN apk upgrade --no-cache
13
13
14
14
# Upgrade npm to version 10.9.2
15
15
RUN npm install -g
[email protected]
@@ -29,7 +29,7 @@ RUN npm run build \
29
29
FROM node:20-alpine
30
30
31
31
# Upgrade system packages
32
- RUN apk update && apk upgrade --no-cache
32
+ RUN apk upgrade --no-cache
33
33
34
34
# Upgrade npm to version 10.9.2
35
35
RUN npm install -g
[email protected]
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