-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* perf: tiktoken count * fix: rerank histories * fix: rerank histories * update npmrc
- Loading branch information
Showing
8 changed files
with
73 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
public-hoist-pattern[]=*tiktoken* | ||
public-hoist-pattern[]=*react* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ RUN apk add --no-cache libc6-compat && npm install -g [email protected] | |
RUN [ -z "$proxy" ] || pnpm config set registry https://registry.npmmirror.com | ||
|
||
# copy packages and one project | ||
COPY pnpm-lock.yaml pnpm-workspace.yaml ./ | ||
COPY pnpm-lock.yaml pnpm-workspace.yaml .npmrc ./ | ||
COPY ./packages ./packages | ||
COPY ./projects/$name/package.json ./projects/$name/package.json | ||
|
||
|
@@ -27,7 +27,7 @@ ARG name | |
ARG proxy | ||
|
||
# copy common node_modules and one project node_modules | ||
COPY package.json pnpm-workspace.yaml ./ | ||
COPY package.json pnpm-workspace.yaml .npmrc ./ | ||
COPY --from=mainDeps /app/node_modules ./node_modules | ||
COPY --from=mainDeps /app/packages ./packages | ||
COPY ./projects/$name ./projects/$name | ||
|
@@ -64,6 +64,11 @@ COPY --from=builder --chown=nextjs:nodejs /app/projects/$name/.next/static /app/ | |
COPY --from=builder --chown=nextjs:nodejs /app/projects/$name/.next/server/chunks /app/projects/$name/.next/server/chunks | ||
# copy worker | ||
COPY --from=builder --chown=nextjs:nodejs /app/projects/$name/.next/server/worker /app/projects/$name/.next/server/worker | ||
|
||
# copy tiktoken but not copy ./node_modules/tiktoken/encoders | ||
COPY --from=mainDeps /app/node_modules/tiktoken ./node_modules/tiktoken | ||
RUN rm -rf ./node_modules/tiktoken/encoders | ||
|
||
# copy package.json to version file | ||
COPY --from=builder /app/projects/$name/package.json ./package.json | ||
# copy config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters