prise en charge des outils + weather

This commit is contained in:
fabien committed 2026-10-04 21:03:51 +02:00
1 parent a36f1231cd
commit 0a6ffab050
14 files changed
+623 -113

No files matched your search

+3 -3
View File
@@ -120,7 +120,7 @@ func (s *Service) AddChatMessage(
return nil, err
}
messages, err := s.repoChat.GetChatMessages(userID, teamID, chatID)
messages, err := s.repoChat.GetChatMessages(userID, teamID, chatID, true)
if err != nil {
return nil, err
}
@@ -158,7 +158,7 @@ func (s *Service) GetChatWithMessages(userID string, teamID, chatID string) (*do
if err != nil {
return nil, err
}
messages, err := s.repoChat.GetChatMessages(userID, teamID, chatID)
messages, err := s.repoChat.GetChatMessages(userID, teamID, chatID, false)
if err != nil {
return nil, err
}
@@ -207,7 +207,7 @@ func (s *Service) runQuery(
s.mu.Unlock()
go func() {
_, err := chatSession.run(ctx)
err := chatSession.run(ctx)
if err != nil {
slog.Info("chat session error", "error", err)
}