controller

package
v0.0.0-...-b486baa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

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]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL