openai-translator / bob-plugin-openai-translator

基于 ChatGPT API 的文本翻译、文本润色、语法纠错 Bob 插件,让我们一起迎接不需要巴别塔的新时代!Licensed under CC BY-NC-SA 4.0

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

接口响应错误 - Invalid URL (POST //v1/chat/completions)

shenhanqing opened this issue · comments

目前使用香港的 vps,使用 CF托管域名,加上 Nginx 反向代理 api.openai.com,但是一直报接口响应错误。直接访问https://我的域名.com/v1/chat/completions,返回"You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
"请问大佬大概是什么原因?

image

抓包看了一下多了一个反斜杠,我怎么找都没找到这个反斜杠怎么来的

image