mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 03:20:11 +00:00
fix(ai): wire patrol circuit breaker on first-time configure
This commit is contained in:
parent
ae2edbde20
commit
8a43a964b6
1 changed files with 6 additions and 0 deletions
|
|
@ -3467,6 +3467,12 @@ func (r *Router) RestartAIChat(ctx context.Context) {
|
|||
r.wireChatServiceToAI()
|
||||
if r.aiSettingsHandler != nil {
|
||||
r.aiSettingsHandler.WireOrchestratorAfterChatStart()
|
||||
if patrolSvc := r.aiSettingsHandler.GetAIService(ctx).GetPatrolService(); patrolSvc != nil {
|
||||
if breaker := r.aiSettingsHandler.GetCircuitBreaker(); breaker != nil {
|
||||
patrolSvc.SetCircuitBreaker(breaker)
|
||||
log.Info().Msg("AI patrol circuit breaker wired")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue