Chanzhaoyu / chatgpt-web

用 Express 和 Vue3 搭建的 ChatGPT 演示网页
MIT License
31.54k stars 11.21k forks source link

萌新问一下返回message : "Invalid URL"是什么问题,使用的是token方式 #1983

Closed zf651 closed 11 months ago

zf651 commented 11 months ago

返回是这段 { "message": "Invalid URL", "data": null, "status": "Fail" } 下面是.env的配置

OpenAI API Key - https://platform.openai.com/overview

OPENAI_API_KEY=

change this to an accessToken extracted from the ChatGPT site's https://chat.openai.com/api/auth/session response

OPENAI_ACCESS_TOKEN="这里是我的token";

OpenAI API Base URL - https://api.openai.com

OPENAI_API_BASE_URL=

OpenAI API Model - https://platform.openai.com/docs/models

OPENAI_API_MODEL=

set true to disable OpenAI API debug log

OPENAI_API_DISABLE_DEBUG=

Reverse Proxy - Available on accessToken

Default: https://ai.fakeopen.com/api/conversation

More: https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy

API_REVERSE_PROXY="https://ai.fakeopen.com/api/conversation";

musaart commented 11 months ago

https://ai.fakeopen.com/api/conversation这个服务不可用了,所以各种报错

wwlmm commented 11 months ago

返回是这段 { "message": "Invalid URL", "data": null, "status": "Fail" } 下面是.env的配置

OpenAI API Key - https://platform.openai.com/overview

OPENAI_API_KEY=

change this to an accessToken extracted from the ChatGPT site's https://chat.openai.com/api/auth/session response

OPENAI_ACCESS_TOKEN="这里是我的token";

OpenAI API Base URL - https://api.openai.com

OPENAI_API_BASE_URL=

OpenAI API Model - https://platform.openai.com/docs/models

OPENAI_API_MODEL=

set true to disable OpenAI API debug log

OPENAI_API_DISABLE_DEBUG=

Reverse Proxy - Available on accessToken

Default: https://ai.fakeopen.com/api/conversation

More: https://github.com/transitive-bullshit/chatgpt-api#reverse-proxy

API_REVERSE_PROXY="https://ai.fakeopen.com/api/conversation";

老版本的不可用了,转移到了新的pandoranext上饿了