free-chat
free-chat copied to clipboard
An elegant LLM chat UI forked from chatgpt-demo of @anse-app. Index site at https://free-chat.asia
This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of...
## To-dos: - [ ] Use [`js-tiktoken`](https://www.npmjs.com/package/js-tiktoken) **at frontend** - [ ] Slice messages sliding window **at backend**: using [`js-tiktoken`](https://www.npmjs.com/package/js-tiktoken) - [x] Cache token counting utilities - [ ] Standalone...
# Description This pull request updates the .env.example and README.md files with new environment variables for the project. # Summary - Updated .env.example with new environment variables: `OPENAI_API_KEY`, `HTTPS_PROXY`, `OPENAI_API_BASE_URL`,...
# Description This pull request updates the .env.example and README files with new environment variables for the application. # Summary - Added new environment variables to .env.example - `SECRET_KEY` |...
### PR Feedback: 👎 # Description This pull request implements token counting on the server side. # Summary - Updated `src/pages/api/generate.ts` to include token counting logic. - Added `src/utils/tiktoken-server.ts` to...
### Details There are some new env usages inside the code. Please search `import.meta.env` and update related information inside `.env.example` and `README*` files. Checklist - [X] Modify `.env.example` ✓ https://github.com/CNSeniorious000/free-chat/commit/c86c8b35f9da0d556bfab3658f49e50b400c7051...
### Details 在 src/pages/api/generate.ts 中加上和 src/components/Generator.tsx 中一样的裁剪 messages 的逻辑: 但是注意:服务端用不了 tiktoken 库,只能用 tiktoken-js 库,他们应该有类似的 interface Checklist - [X] Create `src/utils/tiktoken-server.ts` ✓ https://github.com/CNSeniorious000/free-chat/commit/09d72442ebe25ea72693afd406fe601d703d1b27 - [X] Running GitHub Actions for `src/utils/tiktoken-server.ts` ✓...

咨询一下部署
老哥,虚心请教一下,你的网站是怎么部署的,我在日本节点部署了一下,也没这么快的速度。
Use `solid-markdown` to parse and render markdown without frequently updating DOM - Closes #68 ## Sourcery 的总结 用 `solid-markdown` 替换现有的 markdown 渲染方法,以支持部分 markdown 渲染,并通过最小化 DOM 更新来提高性能。重构代码以使用带有 `remark` 和 `rehype` 插件的...