airsltd commited on
Commit
fa6601b
·
verified ·
1 Parent(s): 1fa736f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,8 +56,8 @@ except Exception as e:
56
  key_index = 0
57
  keys_count = len(gemini_api_keys_arr)
58
 
59
- # @app.api_route("/v1/{protocol}/{host}/{path:path}", methods=["GET", "POST", "PUT", "DELETE"])
60
- @app.api_route("/v1/{protocol}/{host}/{path:path}", methods=["POST"])
61
  async def proxy_gemini(request: Request, protocol: ProtocolType, host:str, path: str, proxy_api_key: str = Depends(verify_proxy_api_key)): # 添加代理认证依赖
62
  global key_index # 声明使用全局变量
63
  real_url = f"{protocol.value}://{host}/{path}"
 
56
  key_index = 0
57
  keys_count = len(gemini_api_keys_arr)
58
 
59
+ @app.api_route("/v1/{protocol}/{host}/{path:path}", methods=["GET", "POST", "PUT", "DELETE"])
60
+ # @app.api_route("/v1/{protocol}/{host}/{path:path}", methods=["POST"])
61
  async def proxy_gemini(request: Request, protocol: ProtocolType, host:str, path: str, proxy_api_key: str = Depends(verify_proxy_api_key)): # 添加代理认证依赖
62
  global key_index # 声明使用全局变量
63
  real_url = f"{protocol.value}://{host}/{path}"