Documentation
¶
Index ¶
- func ClearConversations(c *gin.Context)
- func CreateConversation(c *gin.Context)
- func Fallback(c *gin.Context)
- func FeedbackMessage(c *gin.Context)
- func GenerateTitle(c *gin.Context)
- func GetAccountCheck(c *gin.Context)
- func GetConversation(c *gin.Context)
- func GetConversations(c *gin.Context)
- func GetModels(c *gin.Context)
- func Login(c *gin.Context)
- func UpdateConversation(c *gin.Context)
- type Author
- type Content
- type Cookie
- type CreateConversationRequest
- type FeedbackMessageRequest
- type GenerateTitleRequest
- type Message
- type PatchConversationRequest
- type UserLogin
- func (userLogin *UserLogin) CheckPassword(state string, username string, password string) (string, int, error)
- func (userLogin *UserLogin) CheckUsername(state string, username string) (int, error)
- func (userLogin *UserLogin) GetAccessToken(code string) (string, int, error)
- func (userLogin *UserLogin) GetAuthorizedUrl(csrfToken string) (string, int, error)
- func (userLogin *UserLogin) GetState(authorizedUrl string) (string, int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearConversations ¶
func CreateConversation ¶
func FeedbackMessage ¶
func GenerateTitle ¶
func GetAccountCheck ¶
func GetConversation ¶
func GetConversations ¶
func UpdateConversation ¶
Types ¶
type CreateConversationRequest ¶
type CreateConversationRequest struct {
Action string `json:"action"`
Messages []Message `json:"messages"`
Model string `json:"model"`
ParentMessageID string `json:"parent_message_id"`
ConversationID *string `json:"conversation_id"`
TimezoneOffsetMin int `json:"timezone_offset_min"`
VariantPurpose string `json:"variant_purpose"`
ContinueText string `json:"continue_text"`
}
type FeedbackMessageRequest ¶
type GenerateTitleRequest ¶
type GenerateTitleRequest struct {
MessageID string `json:"message_id"`
}
type UserLogin ¶
type UserLogin struct {
// contains filtered or unexported fields
}
func (*UserLogin) CheckPassword ¶
func (*UserLogin) CheckUsername ¶
func (*UserLogin) GetAccessToken ¶
func (*UserLogin) GetAuthorizedUrl ¶
Click to show internal directories.
Click to hide internal directories.