bigmodel

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorBusySource

func IsErrorBusySource(err error) bool

func IsErrorSensitiveInfo

func IsErrorSensitiveInfo(err error) bool

helper

func NewErrorBusySource

func NewErrorBusySource(err error) errorBusySource

func NewErrorSensitiveInfo

func NewErrorSensitiveInfo(err error) errorSensitiveInfo

Types

type BigModel

type BigModel interface {
	// common
	GetIdleEndpoint(bid string) (c int, err error)
	CheckText(content string) error
	CheckImages(urls []string) error

	// wukong
	GetWuKongSampleId() string
	GenWuKongSampleNums(int) []int
	GenPicturesByWuKong(types.Account, *domain.WuKongPictureMeta, string) (map[string]string, error)
	DeleteWuKongPicture(string) error
	GenWuKongPictureLink(p string) (string, error)
	MoveWuKongPictureToDir(string, string) error
	GenWuKongLinkFromOBSPath(string) string
	CheckWuKongPictureTempToLike(types.Account, string) (domain.WuKongPictureMeta, string, error)
	CheckWuKongPicturePublicToLike(types.Account, string) (string, error)
	CheckWuKongPictureToPublic(types.Account, string) (domain.WuKongPictureMeta, string, error)

	// luojia
	LuoJiaUploadPicture(f io.Reader, u types.Account) error
	LuoJia(string) (string, error)

	// ai detector
	AIDetector(domain.AIDetectorInput) (bool, error)

	// baichuan2
	BaiChuan(*domain.BaiChuanInput) (string, string, error)

	// glm2
	GLM2(chan string, *domain.GLM2Input) error

	// llama2
	LLAMA2(chan string, *domain.LLAMA2Input) error

	// skywork
	SkyWork(chan string, *domain.SkyWorkInput) error

	// iflytekspark
	IFlytekSpark(chan string, *domain.IFlytekSparkInput) error
}

type CodeGeexReq

type CodeGeexReq struct {
	Lang    string
	Content string
}

type CodeGeexResp

type CodeGeexResp struct {
	Result string `json:"result"`
	Finish string `json:"finish"`
}

Jump to

Keyboard shortcuts

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