Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewChatGTPServer ¶
func NewChatGTPServer(client *openai.Client) domain.ChatGTPService
func NewRepository ¶
func NewRepository(db *sqlx.DB) domain.Repository
Types ¶
type Chat ¶
type Conversation ¶
type Conversation struct { ID sql.NullInt32 `db:"id"` ChatID sql.NullString `db:"chat_id"` Prompt sql.NullString `db:"prompt"` Completion sql.NullString `db:"completion"` ChannelMessageID sql.NullString `db:"channel_message_id"` CTime sql.NullTime `db:"ctime"` MTime sql.NullTime `db:"mtime"` }
Click to show internal directories.
Click to hide internal directories.