Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRouteForChatController ¶
func AddRouteForChatController(r *gin.RouterGroup, s app.ChatAppService)
Types ¶
type ChatController ¶
type ChatController struct {
// contains filtered or unexported fields
}
func (ChatController) Ask ¶
func (ctl ChatController) Ask(ctx *gin.Context)
Ask @Summary ask a question @Description ask a question @Tags Chat @Accept json @Param param body askQuestionRequest true "body of asking a question" @Success 201 @Failure 400 {object} commonctl.ResponseData @Router /v1/chat [post]
func (ChatController) Models ¶
func (ctl ChatController) Models(ctx *gin.Context)
Models @Summary list all models @Description list all models @Tags Chat @Accept json @Success 200 {object} commonctl.ResponseData @Router /v1/chat/models [get]
Click to show internal directories.
Click to hide internal directories.