Skip to content

[Q&A] openai 的接口问什么要从 vercel 服务端绕一圈? #728

Discussion options

You must be logged in to vote

两方面。一方面是服务端可以隐藏key。如果直接在前端发请求,那么apikey会暴露,这个是很多人不希望的。

另一方面,只要服务器位置得当,就可以做到直连openai,不用魔法或者三方代理。

最后, chat next 应该默认也是用的服务端请求。

Replies: 4 comments 17 replies

Comment options

You must be logged in to vote
5 replies
@suwubee
Comment options

@arvinxx
Comment options

@Yidadaa
Comment options

@Se7enMuting
Comment options

@arvinxx
Comment options

Answer selected by canisminor1990
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@arvinxx
Comment options

@arvinxx
Comment options

@tisfeng
Comment options

@arvinxx
Comment options

Comment options

You must be logged in to vote
8 replies
@tisfeng
Comment options

@tisfeng
Comment options

@arvinxx
Comment options

@arvinxx
Comment options

@tisfeng
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
7 participants
Converted from issue

This discussion was converted from issue #723 on December 19, 2023 14:53.