XksA-me / ChatGPT-3.5-API

手把手教你使用Python调用 ChatGPT-3.5-API。Hands teach you to use Python to call ChatGPT-3.5-API.
MIT License
171 stars 38 forks source link

404 Not Found #5

Open zmz125 opened 1 year ago

zmz125 commented 1 year ago

执行 python chatapi.py 后打开页面显示: Not Found The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

image image

请问是什么问题?如何解决

XksA-me commented 1 year ago

参考这个说明 https://github.com/XksA-me/ChatGPT-3.5-API/blob/master/ChatAPI/chatapi_test.ipynb

XksA-me commented 1 year ago

发送请求需要加上对应路由地址,如果是本地测试 项目运行后服务访问地址:

生成token : http://127.0.0.1:5000/token 调用api : http://127.0.0.1:5000/api 如果使用的服务器,将 127.0.0.1 改成服务器 IP 地址即可。