qingyanbaby / poe-to-openai

This is a project that converts the official poe.com API to the OpenAI API.
Apache License 2.0
38 stars 12 forks source link

大佬能不能增加 api_key 校验,或者直接用客户端传过来的 api-key 给 poe 那边? #8

Closed kbaicai closed 1 month ago

qingyanbaby commented 1 month ago

现在的逻辑是,env配置里CUSTOM_TOKEN是自定义校验token,SYSTEM_TOKEN是poe的token。当调用方传上来的token和CUSTOM_TOKEN一致时,会传SYSTEM_TOKEN给poe,不一致时,直接传客户提交的token给poe。应该已经符合你的需求

kbaicai commented 1 month ago

谢谢大佬解答