mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-07-08 00:01:32 +08:00
移除list_models接口的授权验证逻辑,简化参数定义
This commit is contained in:
@@ -24,10 +24,7 @@ embedding_service = EmbeddingService(settings.BASE_URL)
|
||||
|
||||
@router.get("/v1/models")
|
||||
@router.get("/hf/v1/models")
|
||||
async def list_models(
|
||||
authorization: str = Header(None),
|
||||
token: str = Depends(security_service.verify_authorization),
|
||||
):
|
||||
async def list_models():
|
||||
logger.info("Handling models list request")
|
||||
api_key = await key_manager.get_next_working_key()
|
||||
logger.info(f"Using API key: {api_key}")
|
||||
|
||||
Reference in New Issue
Block a user