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