HomeEnabled reports whether the home control plane integration is enabled in the runtime config.
()
| 962 | |
| 963 | // HomeEnabled reports whether the home control plane integration is enabled in the runtime config. |
| 964 | func (m *Manager) HomeEnabled() bool { |
| 965 | if m == nil { |
| 966 | return false |
| 967 | } |
| 968 | cfg, _ := m.runtimeConfig.Load().(*internalconfig.Config) |
| 969 | return cfg != nil && cfg.Home.Enabled |
| 970 | } |
| 971 | |
| 972 | func (m *Manager) lookupAPIKeyUpstreamModel(authID, requestedModel string) string { |
| 973 | if m == nil { |
no test coverage detected