Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

运行local.8088后提示正常,但后台显示Api-key不对 #4

Open
ymg2007 opened this issue Jan 27, 2024 · 1 comment
Open

运行local.8088后提示正常,但后台显示Api-key不对 #4

ymg2007 opened this issue Jan 27, 2024 · 1 comment

Comments

@ymg2007
Copy link

ymg2007 commented Jan 27, 2024

{"message":"Hello world! This is coze-chat-proxy."}
{"code":"invalid_api_key","message":"Incorrect API key provided: sk-4yNZz***************************************6mjw.","param":null,"type":"invalid_request_error"}

@ymg2007 ymg2007 changed the title 运行local.8088后提示正常,但后台显示Api-key不对。 运行local.8088后提示正常,但后台显示Api-key不对 Jan 27, 2024
@aurorax-neo
Copy link
Owner

{"message":"Hello world! This is coze-chat-proxy."} {"code":"invalid_api_key","message":"Incorrect API key provided: sk-4yNZz***************************************6mjw.","param":null,"type":"invalid_request_error"}

.env或者环境变量添加 AUTH_TOKEN=***,请求头加上 'Authorization: Bearer ****'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants