This commit is contained in:
@@ -57,6 +57,13 @@ class FrontendConfig:
|
||||
api_url = os.getenv("API_URL", "http://127.0.0.1:8079")
|
||||
self.api_base = api_url.replace("/chat", "").rstrip("/")
|
||||
|
||||
# 日志配置
|
||||
self.log_level = os.getenv("LOG_LEVEL", "INFO").upper()
|
||||
self.debug = os.getenv("DEBUG", "false").lower() == "true"
|
||||
|
||||
|
||||
# 日志配置
|
||||
self.log_level = os.getenv("LOG_LEVEL", "INFO").upper()
|
||||
self.debug = os.getenv("DEBUG", "false").lower() == "true"
|
||||
# 全局配置实例(单例模式)
|
||||
config = FrontendConfig()
|
||||
Reference in New Issue
Block a user