basic system promp

This commit is contained in:
fabien committed 2026-09-23 00:09:26 +02:00
1 parent b3be1a81e6
commit a36f1231cd
9 files changed
+48 -12

No files matched your search

+1 -1
View File
@@ -190,7 +190,7 @@ func (t Table[T]) Select(options ...Option) ([]*T, error) {
if q.pagesize != 0 {
query += fmt.Sprintf(" limit %d", q.pagesize)
if q.pagenum != 0 {
query += fmt.Sprintf(" offset %d", q.pagesize*q.pagenum)
query += fmt.Sprintf(" offset %d", q.pagesize*(q.pagenum-1))
}
}
@@ -36,6 +36,7 @@ func (r *TursoChatRepository) ListChats(userID string, teamID string, page int)
teamID,
userID,
),
orm.WithOrder("_date_created desc"),
orm.WithPagination(page, 50),
)
}
+1
View File
@@ -40,6 +40,7 @@ func (s *ChatSession) run(ctx context.Context) (*domain.Message, error) {
Content: s.agent.SystemPrompt,
}
// TODO : loop with tools
msg, err := s.llmEngine.Stream(
ctx,
s.provider,