关于proxy config里的openai key和发送请求时自带的openai key #86
Answered
by
KenyonY
edward-ng-duke
asked this question in
Q&A
-
想请教您一个问题: |
Beta Was this translation helpful? Give feedback.
Answered by
KenyonY
Nov 10, 2023
Replies: 1 comment 2 replies
-
hi @83521166 ,
|
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
edward-ng-duke
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @83521166 ,
这块的逻辑是这样的:
OPENAI_API_KEY
,同时也设置了FORWARD_KEY
,会判断请求的key是否在
FORWARD_KEY
中,如果在, 则从
OPENAI_API_KEY
中的拿一个key;如果不在,则使用自身 (这里应该对应了你的描述中的情况)
OPENAI_API_KEY
,但没有设置FORWARD_KEY
(不推荐)将无视请求中的key, 始终使用配置中的key