fix: settings页面显示动态LLM配置
This commit is contained in:
6
admin.py
6
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
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user