feat: register embedding_model_path in ConfigRegistry instead of JSON config

- Add core.agent.embedding_model_path to seedDBValues and seedCoreDefs
- Wire cfgReg.GetString in main.go to AgentConfig.EmbeddingModelPath
- Follow existing core.agent.* ConfigRegistry pattern
This commit is contained in:
2026-07-17 21:07:54 +08:00
parent 7892d7b0f2
commit 69ceedf0ab
4 changed files with 2628 additions and 4 deletions

View File

@ -385,8 +385,9 @@ func main() {
Personality: personality,
PluginReg: pluginReg,
PluginDir: cfg.Plugin.Dir,
ContextSavePath: filepath.Join(cfg.Daemon.DataDir, "memory", "context.json"),
StageHost: stageHost,
ContextSavePath: filepath.Join(cfg.Daemon.DataDir, "memory", "context.json"),
EmbeddingModelPath: cfgReg.GetString("core.agent.embedding_model_path", ""),
StageHost: stageHost,
EventBus: evBus,
ThinkingEnabled: cfg.LLM.ThinkingEnabled,
InputProcessing: cfg.InputProcessing,