mirror of
https://github.com/snailyp/gemini-balance.git
synced 2026-05-17 19:07:37 +08:00
fix: 为API_KEYS和ALLOWED_TOKENS添加默认值
This commit is contained in:
@@ -51,8 +51,8 @@ class Settings(BaseSettings):
|
||||
return v
|
||||
|
||||
# API相关配置
|
||||
API_KEYS: List[str]
|
||||
ALLOWED_TOKENS: List[str]
|
||||
API_KEYS: List[str]=[]
|
||||
ALLOWED_TOKENS: List[str]=[]
|
||||
BASE_URL: str = f"https://generativelanguage.googleapis.com/{API_VERSION}"
|
||||
AUTH_TOKEN: str = ""
|
||||
MAX_FAILURES: int = 3
|
||||
|
||||
Reference in New Issue
Block a user