5 Star 40 Fork 33

占书生/chatai-python

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README

使用python flask openai实现,数据保存在mongo中 本项目toGPT3.5分支,已经切换到最新的gpt-3.5-turbo模型。

部署:

docker部署
# clone项目
git clone https://gitee.com/MIEAPP/chatai-python.git
# 进入文件夹
cd chatai-python
# 修改Dockerfile文件
CMD ["python","/code/main.py","-u","root","-p","123456","--host","mongo地址","--port","27017","--databaseName","chatui"]
将mongo准备好,用户账号密码,mongo地址等
# 修改.env文件
OPENAI_API_KEY=sk-xxx
使用openai的api-key(需要有openai的账号)
# 使用 docker build 构建image
docker build -t me/ai-image:v1 .
# 使用 docker run 创建容器并运行
docker run -d --name ai -p 8383:8383 me/ai-image:v1

前端项目:chatai-vue

Empty file

About

使用了 Python Flask 和 OpenAI 实现后端,数据存储在mongo里 expand collapse
Cancel

Releases

No release

Contributors

All

Language(Optional)

Activities

can not load any more
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/MIEAPP/chatai-python.git
git@gitee.com:MIEAPP/chatai-python.git
MIEAPP
chatai-python
chatai-python
master

Search