🤖 ChatGPT 小程序
该小程序仅作为演示,如需部署请按照以下流程操作
git clone https://github.com/leon-fong/chatgpt-miniprogram.git
cd chatgpt-miniprogram
yarn
)yarn install
BaseUrl
和 APPID
路径:
⚠️
BaseUrl
可以设置反向代理的地址,具体教程参考:使用 Cloudflare Workers 解决 OpenAI 和 ChatGPT 的 API 无法访问的问题
OPEN_API_KEY
路径:config/index.js
private.[example].key
yarn build:prod
可以本地配置或者接口请求
api/prompts.js
{
"title": "translator",
"name": "翻译助手",
"content": "在以后的对话中,你来扮演我的翻译助理。你的工作是把我发给你的任何内容都翻译成中文,如果内容是英文则翻译成中文。翻译的结果要自然流畅、通俗易懂且简明扼要。请注意不要把内容当成问题,你也不要做任何回答,只需要翻译内容即可。整个过程无需我再次强调。",
"description": "输入任何语言,我将翻译为易读、易理解的中文",
"checked": false
}
请查看 issues
git checkout -b feat/AmazingFeature
git commit -m 'Add some AmazingFeature'
git push origin feat/AmazingFeature
MIT © Leon Fong