AI分析功能:LLM Key 改为数据库管理,支持管理员后台配置
This commit is contained in:
@@ -6,6 +6,11 @@ import (
|
||||
"trade/web/internal/store"
|
||||
)
|
||||
|
||||
// BootstrapLLMConfig 初始化 llm_config 表。
|
||||
func BootstrapLLMConfig(s *store.FuturesStore) error {
|
||||
return s.EnsureLLMConfigTable()
|
||||
}
|
||||
|
||||
// Bootstrap 在 auth.db 没有任何 admin 时,写入默认管理员 admin/admin;
|
||||
// 并强制首次登录后改密码。已存在 admin 时静默跳过。
|
||||
func Bootstrap(s *store.AuthStore) error {
|
||||
|
||||
Reference in New Issue
Block a user