fix: settings页面显示动态LLM配置

This commit is contained in:
2026-04-10 23:18:21 +08:00
parent 7fede0212b
commit 329e795648
2 changed files with 8 additions and 3 deletions

View File

@@ -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
)

View File

@@ -100,8 +100,9 @@
<p><strong>框架:</strong> Flask + SQLAlchemy</p>
</div>
<div class="col-md-4">
<p><strong>LLM模型:</strong> qwen/qwen3.5-35b-a3b</p>
<p><strong>API地址:</strong> http://192.168.2.5:1234/v1</p>
<p><strong>LLM模型:</strong> {{ llm_config.model }}</p>
<p><strong>API地址:</strong> {{ llm_config.api_base }}</p>
<p><a href="{{ url_for('admin.llm_config') }}" class="btn btn-sm btn-outline-primary">修改配置</a></p>
</div>
<div class="col-md-4">
<p><strong>缓存有效期:</strong> 30天</p>