Skip to content

Commit 6f0a61b

Browse files
authored
Post upstream merge fixes (danny-avila#1162)
- disable GPT plugins - disable runCode in UI - update test scrips - update Containerfile to fix the image build - delete unused Github workflows
1 parent 179799b commit 6f0a61b

25 files changed

+156
-402
lines changed

.env.shopify.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ NO_INDEX=true
2424
DEBUG_LOGGING=true
2525
DEBUG_CONSOLE=true
2626
CONSOLE_JSON=true
27-
ENDPOINTS=openAI,gptPlugins,agents
27+
ENDPOINTS=openAI,agents
2828
DEBUG_OPENAI=false
2929
TITLE_CONVO=true
3030
OPENAI_TITLE_MODEL=gpt-3.5-turbo

.github/workflows/data-schemas.yml

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/generate-release-changelog-pr.yml

Lines changed: 0 additions & 94 deletions
This file was deleted.

.github/workflows/generate-unreleased-changelog-pr.yml

Lines changed: 0 additions & 107 deletions
This file was deleted.

Containerfile

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# v0.7.6
1+
# v0.7.8
22

33
# Base image
44
FROM us-docker.pkg.dev/shopify-docker-images/containers/prod-kit/production/node-ubuntu-v3:main as base-min
@@ -56,6 +56,16 @@ RUN npm cache clean --force
5656
RUN npm run build
5757
RUN npm prune --production
5858

59+
# Build data-schemas
60+
FROM base AS data-schemas-build
61+
WORKDIR /app/packages/data-schemas
62+
COPY packages/data-schemas ./
63+
COPY --from=data-provider-build /app/packages/data-provider/dist /app/packages/data-provider/dist
64+
RUN npm install --production=false
65+
RUN npm cache clean --force
66+
RUN npm run build
67+
RUN npm prune --production
68+
5969
# Client build
6070
FROM base as client-build
6171
WORKDIR /app/client
@@ -67,22 +77,23 @@ RUN npm cache clean --force
6777
RUN npm run build
6878
RUN npm prune --production
6979

70-
# Build Shopify & api
80+
# Build Shopify
7181
FROM base as shopify-build
7282
WORKDIR /app
73-
COPY api/ api/
7483
COPY shopify/ shopify/
75-
RUN cd api && npm install --production
76-
RUN cd shopify && npm install --production
84+
RUN cd shopify && npm ci && npm prune --production && npm cache clean --force
7785

7886
# Final step
7987
FROM base-min as api-build
8088
WORKDIR /app
81-
COPY --from=shopify-build /app/api /app/api
89+
RUN npm ci --omit=dev
90+
COPY api ./api
8291
COPY --from=shopify-build /app/shopify /app/shopify
83-
COPY --from=data-provider-build /app/packages/data-provider/dist ./packages/data-provider/dist
84-
COPY --from=mcp-build /app/packages/mcp/dist ./packages/mcp/dist
92+
COPY --from=data-provider-build /app/packages/data-provider /app/packages/data-provider
93+
COPY --from=mcp-build /app/packages/mcp /app/packages/mcp
94+
COPY --from=data-schemas-build /app/packages/data-schemas /app/packages/data-schemas
8595
COPY --from=client-build /app/client/dist ./client/dist
96+
8697
WORKDIR /app/api
8798

8899
COPY Procfile /app/Procfile
@@ -114,7 +125,7 @@ ENV DOMAIN_CLIENT=https://chat.shopify.io \
114125
DEBUG_LOGGING=false \
115126
DEBUG_CONSOLE=true \
116127
CONSOLE_JSON=true \
117-
ENDPOINTS=openAI,gptPlugins,agents \
128+
ENDPOINTS=openAI,agents \
118129
DEBUG_OPENAI=false \
119130
TITLE_CONVO=true \
120131
OPENAI_TITLE_MODEL=gpt-3.5-turbo \

api/strategies/ldapStrategy.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ if (!LDAP_URL || !LDAP_USER_SEARCH_BASE) {
5050
searchAttributes.push(LDAP_EMAIL);
5151
}
5252
const rejectUnauthorized = isEnabled(LDAP_TLS_REJECT_UNAUTHORIZED);
53-
sconst
54-
startTLS = isEnabled(LDAP_STARTTLS);
53+
const startTLS = isEnabled(LDAP_STARTTLS);
5554

5655
const ldapOptions = {
5756
server: {
@@ -74,7 +73,7 @@ if (!LDAP_URL || !LDAP_USER_SEARCH_BASE) {
7473
})(),
7574
},
7675
}),
77-
...(startTLS && { starttls: true }), s
76+
...(startTLS && { starttls: true }),
7877
},
7978
usernameField: 'email',
8079
passwordField: 'password',
@@ -100,7 +99,8 @@ if (!LDAP_URL || !LDAP_USER_SEARCH_BASE) {
10099
const username =
101100
(LDAP_USERNAME && userinfo[LDAP_USERNAME]) || userinfo.givenName || userinfo.mail;
102101

103-
const mail = (LDAP_EMAIL && userinfo[LDAP_EMAIL]) || userinfo.mail || username + '@ldap.local';
102+
const mail =
103+
(LDAP_EMAIL && userinfo[LDAP_EMAIL]) || userinfo.mail || username + '@ldap.local';
104104

105105
if (!userinfo.mail && !(LDAP_EMAIL && userinfo[LDAP_EMAIL])) {
106106
logger.warn(
@@ -140,9 +140,9 @@ if (!LDAP_URL || !LDAP_USER_SEARCH_BASE) {
140140
done(null, user);
141141
} catch (err) {
142142
logger.error('[ldapStrategy]', err);
143-
done(err);
144-
}
145-
});
143+
done(err);
144+
}
145+
});
146146

147-
module.exports = ldapLogin;
147+
module.exports = ldapLogin;
148148
}

librechat.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.2.1
1+
version: 1.2.4
22
cache: true
33

44
fileConfig:
@@ -138,6 +138,9 @@ includedTools:
138138
- dalle
139139
- calculator
140140

141+
interface:
142+
runCode: false
143+
141144
mcpServers:
142145
vault-set-search:
143146
type: 'stdio'

0 commit comments

Comments
 (0)