API Key 会泄露吗? #1193
Closed
henryhu712
started this conversation in
General
API Key 会泄露吗?
#1193
Replies: 2 comments
-
服务是在 vercel 服务器上发出的,用户不可能看到对应的请求。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
在 Vercel 服务器上,服务通过用户提供的 OpenAI Access Key(或者在部署服务端代码时通过环境变量注入)与 OpenAI 服务器建立 Server-Sent Events(SSE)数据流连接,为客户端提供相应的 API(代码如下) 会对用户的请求进行处理,带上认证信息,转发给 OpenAI 的 API |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
在 Vercel 上配置了环境变量 API Key,用户使用时,调用 OpenAI 接口会带上这个key啊,这不就泄露了?我的理解是不是有错。
Beta Was this translation helpful? Give feedback.
All reactions