Skip to content

Commit a71ef60

Browse files
authored
Merge branch 'main' into fix/azure-ai-auth
2 parents 8f4b53a + 8d34426 commit a71ef60

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ COPY package*.json ./
99
COPY patches ./
1010

1111
# Upgrade system packages
12-
RUN apk update && apk upgrade --no-cache
12+
RUN apk upgrade --no-cache
1313

1414
# Upgrade npm to version 10.9.2
1515
RUN npm install -g [email protected]
@@ -29,7 +29,7 @@ RUN npm run build \
2929
FROM node:20-alpine
3030

3131
# Upgrade system packages
32-
RUN apk update && apk upgrade --no-cache
32+
RUN apk upgrade --no-cache
3333

3434
# Upgrade npm to version 10.9.2
3535
RUN npm install -g [email protected]

plugins/portkey/gibberish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

plugins/portkey/language.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

plugins/portkey/moderateContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)