MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / OnInit

Method OnInit

module/system/iml.go:58–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56}
57
58func (i *imlSettingModule) OnInit() {
59 register.Handle(func(v server.Server) {
60 ctx := context.Background()
61
62 address, has := i.settingService.Get(ctx, "system.ai_model.ollama_address")
63 if has {
64 ai_provider_local.ResetLocalAddress(address)
65 }
66
67 })
68}

Callers

nothing calls this directly

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected