response

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CodeGenerate

type CodeGenerate struct {
	Message string `json:"message"`
	Status  int    `json:"status"`
	Result  Result `json:"result"`
}

type ConversationRun

type ConversationRun struct {
	ID             string `json:"id"`
	Role           string `json:"role"`
	Content        string `json:"content"`
	ContentType    string `json:"contentType"`
	Model          string `json:"models"`
	Feedback       uint   `json:"feedback"`
	ParentMsgId    string `json:"parentMsgId"`
	ConversationId string `json:"conversationId"`
}

type ConversationWS

type ConversationWS struct {
	Message string `json:"message"`
	Type    string `json:"type"`
	Sender  string `json:"sender"`
}

type Input

type Input struct {
	Lang string `json:"lang"`
	N    int    `json:"n"`
	Stop []any  `json:"stop"`
	Text string `json:"text"`
}

type Output

type Output struct {
	Code               []string `json:"code"`
	ErrCode            int      `json:"errCode"`
	CompletionTokenNum int      `json:"completion_token_num"`
	PromptTokenNum     int      `json:"prompt_token_num"`
}

type PageData

type PageData struct {
	models.PageInfo
	List any `json:"list"`
}

PageData Encapsulates paginated data

type Progress

type Progress struct {
}

type Result

type Result struct {
	CreatedAt   time.Time `json:"created_at"`
	UpdatedAt   time.Time `json:"updated_at"`
	App         string    `json:"app"`
	Status      string    `json:"status"`
	TaskId      string    `json:"task_id"`
	ProcessTime int       `json:"process_time"`
	Input       Input     `json:"input"`
	Output      Output    `json:"output"`
	User        User      `json:"user"`
	Progress    Progress  `json:"progress"`
}

type RoleList

type RoleList struct {
	Id        uint      `json:"id"`
	Name      string    `json:"name"`
	Keyword   string    `json:"keyword"`
	Sort      uint      `json:"sort"`
	Desc      string    `json:"desc"`
	Status    *uint     `json:"status"`
	Creator   string    `json:"creator"`
	CreatedAt time.Time `json:"createdAt"`
}

type User

type User struct {
	AppId string `json:"appId"`
	Id    string `json:"id"`
	Name  string `json:"name"`
}

type UserInfo

type UserInfo struct {
	Id       uint   `json:"id"`
	Username string `json:"username"`
	ZhName   string `json:"zhName"`
	NickName string `json:"nickName"`
	RoleSort uint   `json:"roleSort"`
}

type UserList

type UserList struct {
	Id        uint      `json:"id"`
	Username  string    `json:"username"`
	ZhName    string    `json:"zhName"`
	Email     string    `json:"email"`
	Status    *uint     `json:"status"`
	RoleId    uint      `json:"roleId"`
	Creator   string    `json:"creator"`
	CreatedAt time.Time `json:"createdAt"`
}

Jump to

Keyboard shortcuts

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