Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
muxiangqiu committed May 25, 2023
1 parent ee8d4d2 commit c100c98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

在国内直接访问 OPEN AI 的 API 存在被封账号的风险,本项目可以快速搭建一个 OPEN AI 的接口代理服务。然后一键部署到腾讯云云函数的国外节点上,比如新加坡地域,不需要特意买一台云服务器,按量付费,成本低,且无需运维。

[![Cloud Studio Template](https://cs-res.codehub.cn/common/assets/icon-badge.svg)](https://cloudstudio.net/#https://github.com/cloudstudio-platform/openai-proxy.git)
[![Cloud Studio Template](https://cs-res.codehub.cn/common/assets/icon-badge.svg)](https://ide.cloud.tecent.com/#https://github.com/cloudstudio-platform/openai-proxy.git)

## 本地运行

Expand Down
2 changes: 1 addition & 1 deletion src/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class CodingProxyMiddleware implements Middleware {

protected useDefaultAPIKey(authorization?: string): boolean {
if (authorization?.includes('managed') || authorization?.trim() === 'Bearer') {
return this.apiKeys.length > 0;
return this.apiKeys?.length > 0;
}
return false;
}
Expand Down

0 comments on commit c100c98

Please sign in to comment.