model

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompletionsReq

type CompletionsReq struct {
	Messages        []openai.ChatCompletionMessage `json:"messages"`
	Stream          bool                           `json:"stream"`
	Model           string                         `json:"model"`
	Temperature     float64                        `json:"temperature"`
	PresencePenalty int                            `json:"presence_penalty"`
}

type UsageRes

type UsageRes struct {
	UsageCount  int `json:"usage_count"`
	UsedTokens  int `json:"used_tokens"`
	TotalTokens int `json:"total_tokens"`
}

使用量接口响应参数

type User

type User struct {
	Id        string `bson:"_id,omitempty"`        // ID
	UserId    int    `bson:"user_id,omitempty"`    // 用户ID
	Nickname  string `bson:"nickname,omitempty"`   // 昵称
	Avatar    string `bson:"avatar,omitempty"`     // 头像
	Gender    int    `bson:"gender,omitempty"`     // 性别[0:保密;1:男;2:女]
	Mobile    string `bson:"mobile,omitempty"`     // 手机号
	Email     string `bson:"email,omitempty"`      // 邮箱
	Birthday  string `bson:"birthday,omitempty"`   // 生日
	Motto     string `bson:"motto,omitempty"`      // 座右铭
	VipLevel  int    `bson:"vip_level,omitempty"`  // 会员等级
	SecretKey string `bson:"secret_key,omitempty"` // 密钥
	Status    int    `bson:"status,omitempty"`     // 状态[1:正常;2:禁用;-1:删除]
	CreatedAt int64  `bson:"created_at,omitempty"` // 注册时间
	UpdatedAt int64  `bson:"updated_at,omitempty"` // 更新时间
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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