admin管理员组

文章数量:1130349

Github地址

https://github/microsoft/sample-app-aoai-chatGPT?tab=readme-ov-file#environment-variables

取2023年7月23日代码。

使用Amazon Linux 2 AMI 的arm 64版本镜像, t4g.medium实例。

需要安装git,可能需要安装 pip3等

sudo apt-get install -y python3-pip

然后从如下地址clone代码

https://github/microsoft/sample-app-aoai-chatGPT.git

如果不使用requirement.txt安装依赖库,则可能会提示没有版本号,需要如下方法解决

python3 -m pip install --user --upgrade pip

requirement.txt中需要注意版本号,因为Dockerfile需要从中读取flask、werkzeug等版本信息,否则会出现版本号不对应等问题。注意:如果本地部署,可能需要更新pip源。

Name: Werkzeug
Version: 2.2.3

Name: Flask
Version: 2.2.2

Name: requests
Version: 2.31.0

urllib3==1.26.15

uvicorn==0.24.0

gunicorn==20.1.0

openai对应api的版本问题,可以在requirement.txt中指定 openai的版本号为0.27.7或0.28

Github地址

https://github/microsoft/sample-app-aoai-chatGPT?tab=readme-ov-file#environment-variables

取2023年7月23日代码。

使用Amazon Linux 2 AMI 的arm 64版本镜像, t4g.medium实例。

需要安装git,可能需要安装 pip3等

sudo apt-get install -y python3-pip

然后从如下地址clone代码

https://github/microsoft/sample-app-aoai-chatGPT.git

如果不使用requirement.txt安装依赖库,则可能会提示没有版本号,需要如下方法解决

python3 -m pip install --user --upgrade pip

requirement.txt中需要注意版本号,因为Dockerfile需要从中读取flask、werkzeug等版本信息,否则会出现版本号不对应等问题。注意:如果本地部署,可能需要更新pip源。

Name: Werkzeug
Version: 2.2.3

Name: Flask
Version: 2.2.2

Name: requests
Version: 2.31.0

urllib3==1.26.15

uvicorn==0.24.0

gunicorn==20.1.0

openai对应api的版本问题,可以在requirement.txt中指定 openai的版本号为0.27.7或0.28

本文标签: DemoChatGptAzuredockeraws