diff --git a/admin.py b/admin.py index c832f88..9f6478b 100644 --- a/admin.py +++ b/admin.py @@ -329,11 +329,15 @@ def settings(): # 获取动态配置 dynamic_configs = DynamicConfig.query.all() + # 获取LLM动态配置 + llm_config = get_llm_config() + return render_template('admin/settings.html', configs=config_dict, dynamic_configs=dynamic_configs, user_limits=USER_LIMITS, - membership_plans=MEMBERSHIP_PLANS + membership_plans=MEMBERSHIP_PLANS, + llm_config=llm_config ) diff --git a/templates/admin/settings.html b/templates/admin/settings.html index 609981d..be586c5 100644 --- a/templates/admin/settings.html +++ b/templates/admin/settings.html @@ -100,8 +100,9 @@
框架: Flask + SQLAlchemy
LLM模型: qwen/qwen3.5-35b-a3b
-API地址: http://192.168.2.5:1234/v1
+LLM模型: {{ llm_config.model }}
+API地址: {{ llm_config.api_base }}
+缓存有效期: 30天