Skip to content

This is a web service that uses the openai-api interface to invoke the model to implement chat.

Notifications You must be signed in to change notification settings

XinRoom/OpenAiChat

Repository files navigation

OpenAiChat

这是一个使用openai-api接口调用模型接口实现前端对话的web服务。

image-20221215191459762

Configuration

  1. 获取openai_key

  2. 替换OpenAiChat.py内的 openai.api_key = "sk-aaa"

  3. 默认使用text-davinci-003模型(通用语言模型),与网页版的chatgpt是有区别的。

Run

local run

pip3 install -r requirements.txt
python3 OpenAiChat.py

docker run

bash ./run.sh

Use

访问8080端口即可

About

This is a web service that uses the openai-api interface to invoke the model to implement chat.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published