forked from Chanzhaoyu/chatgpt-web
-
Notifications
You must be signed in to change notification settings - Fork 782
Help run #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
mmoktl2k8
wants to merge
166
commits into
binjie09:main
Choose a base branch
from
Chanzhaoyu:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Help run #1
Changes from all commits
Commits
Show all changes
166 commits
Select commit
Hold shift + click to select a range
00ade41
feat: 添加 Prompt 模板和 Prompt 商店支持 (#268)
Nothing1024 c0a1b56
feat: 设置添加关闭按钮
Chanzhaoyu 6b8ba63
chore: format
Chanzhaoyu 461d70a
chore: 2.10.4
Chanzhaoyu cf03b65
chore: cover
Chanzhaoyu 84a19aa
fix: 更新JSON导入检查 (#523)
Nothing1024 379bbcd
feat: Improve zh-TW locale (#511)
PeterDaveHello 86d720e
fix: cors in auth_secret_key model (#499)
yi-ge a4cfd0c
fix: 修改最大行数与官方保持一致 (#502)
yi-ge bc5e835
feat: support linux command line proxy standard (#308)
whatwewant 7bebee2
fix: Prompt商店在线导入可以导入两种recommend.json里提到的模板 (#516) (#521)
simonwu53 de6632d
feat: 仓库添加翻译
Chanzhaoyu af76b89
feat: 仓库查询筛选
Chanzhaoyu 0a9f9b6
feat: 调整界面
Chanzhaoyu f4be5b9
chore: update deps
Chanzhaoyu 8a0cb90
feat: improve zh-TW locale, translate new strings (#542)
PeterDaveHello 73bf8c0
feat: 语言设定改为下拉框选择
Chanzhaoyu 0481726
feat: 修改 Prompt Store 移动端样式
Chanzhaoyu 41ddc6a
chore: docs change
Chanzhaoyu db502e1
feat: 权限输入框改为密码类型
Chanzhaoyu efc9e81
fix: 清空上下文时不应该重置会话标题
Chanzhaoyu b288cd6
chore: docs change
Chanzhaoyu 6cd1682
chore: optimize dockerfile to speed up building and reduce docker ima…
whatwewant cf788b1
chore: v2.10.5
Chanzhaoyu 3a1466b
fix: 修复导入、导出错误
Chanzhaoyu 25692f8
fix: inverted parameter for before each function (#585)
pdsuwwz c797ff5
fix: :bug: fix scroll bar style (#617)
haydenull 1411c45
fix: typo (#636)
lizhongyuan3 951e9d8
perf: 优化移动端 prompt 商店样式 (#608)
CornerSkyless 0b13846
chore: extract proxy setup code into reusable function (#583)
kirklin b3cfe7a
perf: 记录上下文设定保存到本地
Chanzhaoyu 2ad7567
perf: 优化部份判断
Chanzhaoyu 116ed7b
docs: 移除 docker-compose.yml 省略
Chanzhaoyu e46d368
feat: show api balance (#582)
pzcn c555289
chore: update deps and lint fix
Chanzhaoyu 9572484
feat: session 返回接口方式做显示判断
Chanzhaoyu a8e9a24
fix: highlight.js 控制台兼容性警告
Chanzhaoyu 71c5a88
chore: v2.10.6
Chanzhaoyu 95ce026
fix: 回退 chatgpt 版本导致的代理失效
Chanzhaoyu 560378f
fix: 添加 usingContext 缺省
Chanzhaoyu 8fad91a
chore: v2.10.7
Chanzhaoyu 08b5772
feat: 查询余额使用 API_BASE_URL 参数
Chanzhaoyu d422a80
feat: 渲染的链接新窗口打开
Chanzhaoyu d1c15f5
perf: config 接口添加权限验证
Chanzhaoyu f1584b6
fix: 手动重置异常的 loading
Chanzhaoyu 47dc009
feat: 添加用于显示回复消息原文的选项 (#672)
yilozt e02ab1f
feat: 新增限流功能 (#718)
zhuxindong 6ecc61a
feat: 添加角色设定预留API 设定页(#768)
quzard b1d0056
perf: 重置回答时滚动定位至该回答 (#781)
shunyue1320 31a8432
perf: scrollToBottom 改成 scrollToBottomIfAtBottom (#771)
shunyue1320 bf48eae
feat: 更新依赖并兼容已存在的代理
Chanzhaoyu 3e509f6
feat: 当用gpt-4的API 时增加可用的 Max Tokens (#729)
simonwu53 60fd2ae
feat: Create start.cmd (#656)
vulgate11 1edf591
chore(vsc-debug): 增加 visual-studio-code 的 debug 启动文件 (#296)
uxiew e302175
fix line end with new-line in some backend (#474)
liut 9c6a3d6
feat: 增加 ChatGPTUnofficialProxyAPI 的模型自定义配置 (#632)
hncboy 9227893
chore: 显示原文时使用 .whitespace-pre-wrap (#779)
yilozt d2a22a3
feat: PWA 默认不开启
Chanzhaoyu 814c3a2
feat: 切换 history 时自动聚焦输入框 (#735)
JS-an 5fee113
perf: 网络连接时 500 自动跳转到主页
Chanzhaoyu e55fc06
docs: fix docker port to private (#802)
kilvn 734eb7a
feat: add zh-TW prompts in the Promt Store (#796)
PeterDaveHello 630e88b
fix: prompt store 样式问题
Chanzhaoyu c52195c
chore: v2.10.8
Chanzhaoyu 917feec
fix: 重置时应该移除本地储存
Chanzhaoyu 5fca2e9
fix: PWA 未添加的问题 (#807)
73e12b1
fix: 移动端新建会话关闭侧边栏 (#813)
Chanzhaoyu 9081b22
perf: 移动端删除 chat 时,侧边栏应该收起
Chanzhaoyu 57a1d6e
fix: ESM error (#826)
kidonng 634c879
perf: 自动焦点时移动端上的不便
Chanzhaoyu 9b0d7db
fix: 移动端焦点不触发的问题
Chanzhaoyu 9023210
perf: 本地地址
Chanzhaoyu fb8ad37
fix: 反向代理限流失效 (#863)
gitgitgogogo 639152f
docs: update README.md, add long reply feature
yi-ge 365a7df
Merge pull request #883 from yi-ge/dev-main
yi-ge a3944f8
fix: missing VITE_GLOB_API_URL when docker build, fixed #690 #717 # (…
zaiMoe c3f4311
chore: update docs
Chanzhaoyu 799af86
perf: add localization for sider (#911)
simonwu53 32ad204
chore: Update README.md (#880)
weifeng12x e2eeee4
fix: local import error and NModal not as expected (#938)
KingTwinkle b579d24
pref: message output optimization (#935)
assassinliujie 07123b7
chore: rolled back to clear the impact
Chanzhaoyu c0a9fd5
fix: 快速按下删除会话导致的问题 #917
Chanzhaoyu 78bcf7f
perf: optimized output (#962)
assassinliujie 76cef65
chore: build rollback
Chanzhaoyu aa0487e
chore: gitHub action
Chanzhaoyu 0878af0
perf: 加入容器名字 (#1035)
LOVECHEN 468bed7
feat: allow user disable openai API debug log (#1041)
zcong1993 c0f4af0
feat: add typing effect (#1017)
puppywang da20aed
feat: add kubernetes deploy (#1001)
CaoYunzhou 142759a
chore: lint fix
Chanzhaoyu 85543de
feat: 添加 socks5 代理认证 (#999)
yimiaoxiehou d2a852d
chore: .eslintignore
Chanzhaoyu 90f0c3a
feat: add socks username/password config (#890)
hank-cp 15f3aac
perf: 调整光标位置
Chanzhaoyu 40fa028
fix: some error
Chanzhaoyu b241240
perf: 默认 systemMessage
Chanzhaoyu 431de38
perf: input auto size
Chanzhaoyu 9bd88ea
fix: 宽度问题
Chanzhaoyu e2ad3fe
fix: x-scrollbar height (#1153)
Fog3211 5594b0b
fix: 空引用显示undefined (#1103)
vchenpeng 4e4e41b
chore: update deps
Chanzhaoyu e3a3e4d
fix: Update @acheong08 Reverse Proxy URL (#1085)
idawnwon 553e239
chore: update .env.examples
Chanzhaoyu c2b25a8
chore: default API_REVERSE_PROXY
Chanzhaoyu 0ff7825
chore: update README.md
Chanzhaoyu a7c9702
chore: v2.10.9
Chanzhaoyu abc4c3a
chore: 回退 chatgpt 包版本,原因:token 长回复报错
Chanzhaoyu 9b66fed
fix: requestOptions (#1188)
leafsummer b07f01b
chore: 引导用户触发提示词 (#1183)
RyanXinOne 1187d88
fix: 修复API余额查询 (#1174)
LuckyWang6 86bba7d
feat: 添加自定义 temperature 和 top_p (#1260)
quzard 439104f
fix: 查询使用量支持代理&修正使用量文案 (#1296)
zuoning777 44f00c9
fix: 调整光标到底部
Chanzhaoyu ddc7066
chore: 默认 100 秒
Chanzhaoyu 20aa35f
chore: optimize code (#1328)
shunyue1320 05a2414
fix: conversationOptions
Chanzhaoyu 527c861
chore: mark days
Chanzhaoyu da04383
fix: default return in `useLanguange()` hook (#1352)
idawnwon eed33fb
feat: Added Korean translation (#1372)
Kamilake 5378729
Let's make GitHub happy (#1453)
PeterDaveHello 7583985
chore: Improve zh-TW locale (#1460)
PeterDaveHello 226ce2b
[fix] markdown 表格内没有换行 (#1492)
wanglong001 ac8b69d
Create ru-RU.ts (#1571)
aquaratixc d598dc6
fix(proxy url): change default proxy url (#1567)
24min 89f78bd
添加nginx防止爬虫爬取配置 (#1187)
appotry 838679f
chore: Update index.ts (#1570)
aquaratixc dd20e9a
chore: 移除无用文件
Chanzhaoyu 3b033d0
feat: 补充语言列表
Chanzhaoyu dbb57d8
perf: 优化复制逻辑
Chanzhaoyu 3dff5bd
chore: version 2.11.0
Chanzhaoyu 0f51e51
fix: 移动端塌缩
Chanzhaoyu 1cb5393
fix: 移动端新建会话关闭侧边栏 (#1661)
tranhungonline bc390ef
feat: "Stop Responding" 国际化,使用 chatgpt 翻译 (#1735)
shunyue1320 6e272bb
feat: 支持最新的gpt-3.5-turbo-16k模型 (#1789)
BertramRay 847a2d4
style: 优化移动端代码展示 (#1752)
symant233 c6e1663
Create vi-VN.ts (#1798)
trongtindev b8f2a0e
feat: 允许temperature调到2 (#1797)
shansing b651ef8
chore: Improve zh-TW locale (#1837)
PeterDaveHello c2ce700
fix: store循环引用 (#1880)
mdongsheng 2b2efe2
Update README.md (#1864)
yangchuansheng c226d07
fix: 修复打字机动画
Chanzhaoyu 4f9232c
chore: 格式化代码
Chanzhaoyu e1d8f5f
feat: 清空聊天历史
Chanzhaoyu 2683977
chore: 2.11.1
Chanzhaoyu a6f6701
fix: 不规范的引入
Chanzhaoyu 3482565
chore: doc
Chanzhaoyu a6605e8
chore: v2.11.1
Chanzhaoyu ed1e41c
feat: support the latest GPT-4 Turbo (gpt-4-1106-preview) model (#1968)
PeterDaveHello 15a6b19
localization: Add additional English translations (#1987)
eburnette 60f1f71
Added es-ES (#1989)
eburnette 05e1df5
fix: SvgIcon打包报类型错误 (#2012)
a417420427 15903fa
feat: support the latest GPT-4 Turbo preview models (#2024)
PeterDaveHello c520580
fix(server): compatible with gateway.ai.cloudflare.com (#2029)
mylukin 6432efe
chore: doc
Chanzhaoyu 8dd447c
feat: improve GPT-3.5 Turbo 16k support (#2049)
PeterDaveHello f4f1d35
Add GPT-4 Turbo API the latest GA version (#2072)
PeterDaveHello a410376
perf: html2canvas => html-to-image
Chanzhaoyu ab9dca4
perf: change katex package
Chanzhaoyu fa8874b
update esno to fix tsx issue on Node v18.19 (#2083)
iizenn f257a54
feat: add GPT-4o support (#2082)
PeterDaveHello e1a3308
chore: replace EOL Node.js v19 w/ LTS v20 in engine spec (#2080)
PeterDaveHello e3ce91c
fix: model error
Chanzhaoyu a546d85
feat: markdown mermaid
Chanzhaoyu 574aac2
perf: 数学公式 $$ 处理
Chanzhaoyu 7474b2c
Add GPT-4o mini support (#2102)
PeterDaveHello File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,22 @@ | ||
| // For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
| // README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node | ||
| { | ||
| "name": "Node.js & TypeScript", | ||
| // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
| "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bullseye" | ||
|
|
||
| // Features to add to the dev container. More info: https://containers.dev/features. | ||
| // "features": {}, | ||
|
|
||
| // Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
| // "forwardPorts": [], | ||
|
|
||
| // Use 'postCreateCommand' to run commands after the container is created. | ||
| // "postCreateCommand": "yarn install", | ||
|
|
||
| // Configure tool-specific properties. | ||
| // "customizations": {}, | ||
|
|
||
| // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
| // "remoteUser": "root" | ||
| } |
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ node_modules | |
| Dockerfile | ||
| .* | ||
| */.* | ||
| !.env | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,10 @@ | ||
| # Glob API URL | ||
| VITE_GLOB_API_URL=/api | ||
|
|
||
| VITE_APP_API_BASE_URL=http://localhost:3002/ | ||
| VITE_APP_API_BASE_URL=http://127.0.0.1:3002/ | ||
|
|
||
| # Whether long replies are supported, which may result in higher API fees | ||
| VITE_GLOB_OPEN_LONG_REPLY=false | ||
|
|
||
| # When you want to use PWA | ||
| VITE_GLOB_APP_PWA=false |
This file contains hidden or 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 @@ | ||
| docker-compose | ||
| kubernetes |
This file contains hidden or 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,22 @@ | ||
| name: Close inactive issues | ||
| on: | ||
| schedule: | ||
| - cron: '30 1 * * *' | ||
|
|
||
| jobs: | ||
| close-issues: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| issues: write | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/stale@v5 | ||
| with: | ||
| days-before-issue-stale: 10 | ||
| days-before-issue-close: 2 | ||
| stale-issue-label: stale | ||
| stale-issue-message: This issue is stale because it has been open for 10 days with no activity. | ||
| close-issue-message: This issue was closed because it has been inactive for 2 days since being marked as stale. | ||
| days-before-pr-stale: -1 | ||
| days-before-pr-close: -1 | ||
| repo-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains hidden or 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,25 @@ | ||
| { | ||
| // Use IntelliSense to learn about possible attributes. | ||
| // Hover to view descriptions of existing attributes. | ||
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
| "version": "0.2.0", | ||
| "configurations": [ | ||
| { | ||
| "type": "chrome", | ||
| "request": "launch", | ||
| "name": "Launch Web App", | ||
| "url": "http://localhost:1002", | ||
| "webRoot": "${workspaceFolder}" | ||
| }, | ||
| { | ||
| "type": "node", | ||
| "request": "launch", | ||
| "name": "Launch Service Server", | ||
| "runtimeExecutable": "${workspaceFolder}/service/node_modules/.bin/esno", | ||
| "skipFiles": ["<node_internals>/**"], | ||
| "program": "${workspaceFolder}/service/src/index.ts", | ||
| "outFiles": ["${workspaceFolder}/service/**/*.js"], | ||
| "envFile": "${workspaceFolder}/service/.env" | ||
| } | ||
| ] | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,28 +1,56 @@ | ||
| # build front-end | ||
| FROM node:lts-alpine AS builder | ||
| FROM node:lts-alpine AS frontend | ||
|
|
||
| RUN npm install pnpm -g | ||
|
|
||
| COPY ./ /app | ||
| WORKDIR /app | ||
|
|
||
| RUN apk add --no-cache git \ | ||
| && npm install pnpm -g \ | ||
| && pnpm install \ | ||
| && pnpm run build \ | ||
| && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/* | ||
| COPY ./package.json /app | ||
|
|
||
| COPY ./pnpm-lock.yaml /app | ||
|
|
||
| RUN pnpm install | ||
|
|
||
| COPY . /app | ||
|
|
||
| RUN pnpm run build | ||
|
|
||
| # build backend | ||
| FROM node:lts-alpine as backend | ||
|
|
||
| RUN npm install pnpm -g | ||
|
|
||
| WORKDIR /app | ||
|
|
||
| COPY /service/package.json /app | ||
|
|
||
| COPY /service/pnpm-lock.yaml /app | ||
|
|
||
| RUN pnpm install | ||
|
|
||
| COPY /service /app | ||
|
|
||
| RUN pnpm build | ||
|
|
||
| # service | ||
| FROM node:lts-alpine | ||
|
|
||
| COPY /service /app | ||
| COPY --from=builder /app/dist /app/public | ||
| RUN npm install pnpm -g | ||
|
|
||
| WORKDIR /app | ||
| RUN apk add --no-cache git \ | ||
| && npm install pnpm -g \ | ||
| && pnpm install --only=production \ | ||
| && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/* | ||
|
|
||
| COPY /service/package.json /app | ||
|
|
||
| COPY /service/pnpm-lock.yaml /app | ||
|
|
||
| RUN pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/* | ||
|
|
||
| COPY /service /app | ||
|
|
||
| COPY --from=frontend /app/dist /app/public | ||
|
|
||
| COPY --from=backend /app/build /app/build | ||
|
|
||
| EXPOSE 3002 | ||
|
|
||
| CMD ["pnpm", "run", "start"] | ||
| CMD ["pnpm", "run", "prod"] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DL3016: Pin versions in npm. Instead of
npm install <package>usenpm install <package>@<version>❗❗ 2 similar findings have been found in this PR
🔎 Expand here to view all instances of this finding
Visit the Lift Web Console to find more details in your report.
ℹ️ Expand to see all @sonatype-lift commands
You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.
@sonatype-lift ignore@sonatype-lift ignoreall@sonatype-lift exclude <file|issue|path|tool>file|issue|path|toolfrom Lift findings by updating your config.toml fileNote: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.
Help us improve LIFT! (Sonatype LiftBot external survey)
Was this a good recommendation for you? Answering this survey will not impact your Lift settings.
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]