bigmodel

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 3 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 {
	DescribePicture(io.Reader, string, int64) (string, error)
	GenPicture(domain.Account, string) (string, error)
	GenPictures(domain.Account, string) ([]string, error)
	Ask(domain.Question, string) (string, error)
	VQAUploadPicture(f io.Reader, u domain.Account, fileName string) error
	LuoJiaUploadPicture(f io.Reader, u domain.Account) error
	PanGu(string) (string, error)
	LuoJia(string) (string, error)
	CodeGeex(*CodeGeexReq) (CodeGeexResp, error)
	GetWuKongSampleId() string
	GenWuKongSampleNums(int) []int
	GenPicturesByWuKong(domain.Account, *domain.WuKongPictureMeta) (map[string]string, error)
	DeleteWuKongPicture(string) error
	GenWuKongPictureLink(p string) (string, error)
	MoveWuKongPictureToDir(string, string) error
	GenWuKongLinkFromOBSPath(string) string
	CheckWuKongPictureTempToLike(domain.Account, string) (domain.WuKongPictureMeta, string, error)
	CheckWuKongPicturePublicToLike(domain.Account, string) (string, error)
	CheckWuKongPictureToPublic(domain.Account, string) (domain.WuKongPictureMeta, string, 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