You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
练亮斌 63af4a8e97
fix: 防止中文输入法输入英文时触发提交
部分输入法支持中英文混输,输入过程中按空格选择中文,按回车把当前的英文直接上屏。

至少在Chrome浏览器中,会把输入法选英文词的回车作为keyup事件,导致未输入完成的句子被提交。改成监听keypress事件就没问题了。
其他浏览器未测试。
2 years ago
.vscode chore: editor config 2 years ago
docs chore: cover.png 2 years ago
public chore: initialize 2 years ago
service feat: 支持上下文联想 2 years ago
src fix: 防止中文输入法输入英文时触发提交 2 years ago
.editorconfig chore: initialize 2 years ago
.env feat: 删除多余的内容 2 years ago
.eslintignore chore: initialize 2 years ago
.eslintrc.cjs chore: initialize 2 years ago
.gitattributes chore: initialize 2 years ago
.gitignore chore: editor settings 2 years ago
.prettierrc.json chore: initialize 2 years ago
CHANGELOG.md chore: version 1.0.4 2 years ago
README.md chore: README.md 2 years ago
README.zh-CN.md chore: README.md 2 years ago
index.html pref: reduce code 2 years ago
license pref: 优化部份内容 2 years ago
package.json chore: release v1.0.4 2 years ago
pnpm-lock.yaml chore: update deps 2 years ago
postcss.config.js chore: initialize 2 years ago
tailwind.config.js chore: initialize 2 years ago
tsconfig.json pref: reduce code 2 years ago
vite.config.ts pref: reduce code 2 years ago

README.md

ChatGPT Web Bot

English | 中文

ChartGPT demo page built with express and vue3

cover

Usage

Make sure node >= 18

If pnpm is not installed

npm install pnpm -g

install node deps

pnpm install

Sign up for an OpenAI API key and store it in your environment.

# .env
OPENAI_API_KEY="Your Key"

Run service

pnpm run service

Run web

pnpm run dev

License

MIT © ChenZhaoYu