Mise à jour du titre (imparfait)
This commit is contained in:
1 parent
345129c7bf
commit
509a3b14c8
14 files changed
+451
-18
No files matched your search
@@ -15,6 +15,7 @@ type Chat struct {
|
||||
UserID string `db:"user_id" json:"userId"`
|
||||
TaskID string `db:"task_id" json:"taskId,omitempty"`
|
||||
Title string `db:"title" json:"title"`
|
||||
FreshTitle bool `db:"fresh_title" json:"freshTitle"`
|
||||
DateCreated time.Time `db:"_date_created" json:"_date_created"`
|
||||
DateUpdated *time.Time `db:"_date_updated" json:"_date_updated"`
|
||||
VersionId string `db:"_version" json:"_version"`
|
||||
@@ -139,10 +140,17 @@ type LLMEngine interface {
|
||||
params *LLMParams,
|
||||
messages []*Message,
|
||||
) *Message
|
||||
Generate(
|
||||
ctx context.Context,
|
||||
provider *Provider,
|
||||
modelID string,
|
||||
messages []*Message,
|
||||
) (string, error)
|
||||
}
|
||||
|
||||
type ChatRepository interface {
|
||||
ListChats(userID string, teamID string, page int) ([]*Chat, error)
|
||||
ListChatsWithUnfreshTitles(teamID string) ([]*Chat, error)
|
||||
GetChat(userID string, teamID string, id string) (*Chat, error)
|
||||
CreateChat(userID string, chat *Chat) (*Chat, error)
|
||||
UpdateChat(userID string, chat *Chat) (*Chat, error)
|
||||
|
||||
Reference in new issue
Block a user