prise en charge des outils + weather
This commit is contained in:
1 parent
a36f1231cd
commit
0a6ffab050
14 files changed
+623
-113
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user