compaction de contexte, filtre/pagination/suppression des conversations

- compaction automatique du contexte LLM quand la taille atteint le seuil
  (contexte max - taille de réponse max), par résumé de l'historique ancien
- filtre textuel (?q=) et pagination (20/page) de l'historique des conversations
- correctif ORM : offset de pagination en base 0
- suppression d'une conversation : messages associés supprimés, session en
  cours annulée, popup de confirmation (ConfirmDialog)
- titres de conversation nettoyés du markdown
- styles des listes markdown, variante danger du bouton
- go.mod/go.sum : dépendances go-rod et stealth manquantes du commit précédent
This commit is contained in:
fabien committed 2026-10-05 23:46:12 +02:00
1 parent a970bfa991
commit 51bbb45b32
86 files changed
+770 -113

No files matched your search

+6 -4
View File
@@ -62,9 +62,11 @@ type ChatWithMessages struct {
}
type ChatParams struct {
ProviderID string
ModelID string
OnChunk StreamCallback
ProviderID string
ModelID string
ContextMaxTokens int // taille de contexte du modèle ; 0 = défaut
MaxResponseTokens int // réserve de réponse ; 0 = défaut
OnChunk StreamCallback
}
type ToolParam struct {
@@ -149,7 +151,7 @@ type LLMEngine interface {
}
type ChatRepository interface {
ListChats(userID string, teamID string, page int) ([]*Chat, error)
ListChats(userID string, teamID string, page int, query string) ([]*Chat, error)
ListChatsWithUnfreshTitles(teamID string) ([]*Chat, error)
GetChat(userID string, teamID string, id string) (*Chat, error)
CreateChat(userID string, chat *Chat) (*Chat, error)