Documentation ¶
Index ¶
- Constants
- Variables
- type AIDetectorInput
- type AIDetectorText
- type ApiInfo
- type BaiChuanInput
- type BaiChuanText
- type BigModelFinishedEvent
- type BigModelStartedEvent
- type BigmodelType
- type ChoiceQuestion
- type CompletionQuestion
- type Desc
- type GLM2Input
- type GLM2Text
- type GenPictureInput
- type History
- type IFlytekSparkInput
- type IFlytekSparkText
- type LLAMA2Input
- type LLAMA2Text
- type Lang
- type LuoJiaRecord
- type LuoJiaRecordIndex
- type ModelName
- type OBSPath
- type Question
- type QuestionSubmission
- type QuestionSubmissionInfo
- type RepetitionPenalty
- type SkyWorkInput
- type SkyWorkText
- type Temperature
- type TopK
- type TopP
- type UserApiRecord
- type UserLuoJiaRecord
- type WuKongAsyncInferenceFinishEvent
- type WuKongAsyncTaskStartEvent
- type WuKongInferenceErrorEvent
- type WuKongInferenceStartEvent
- type WuKongPicture
- type WuKongPictureDesc
- type WuKongPictureLevel
- type WuKongPictureLikedEvent
- type WuKongPictureMeta
- type WuKongPicturePublicizedEvent
Constants ¶
View Source
const ( AIQuestionStatusStart = "start" AIQuestionStatusEnd = "end" )
Variables ¶
View Source
var ( BigmodelVQA = BigmodelType(bigmodelVQA) BigmodelPanGu = BigmodelType(bigmodelPanGu) BigmodelLuoJia = BigmodelType(bigmodelLuoJia) BigmodelWuKong = BigmodelType(bigmodelWuKong) BigmodelWuKong4Img = BigmodelType(bigmodelWuKong4Img) BigmodelWuKongHF = BigmodelType(bigmodelWuKongHF) BigmodelWuKongUser = BigmodelType(bigmodelWuKongUser) BigmodelCodeGeex = BigmodelType(bigmodelCodeGeex) BigmodelGenPicture = BigmodelType(bigmodelGenPicture) BigmodelDescPicture = BigmodelType(bigmodelDescPicture) BigmodelDescPictureHF = BigmodelType(bigmodelDescPictureHF) BigmodelAIDetector = BigmodelType(bigmodelAIDetector) BigmodelBaiChuan = BigmodelType(bigmodelBaiChuan) BigmodelGLM2 = BigmodelType(bigmodelGLM2) BigmodelLLAMA2 = BigmodelType(bigmodelLLAMA2) BigmodelSkyWork = BigmodelType(bigmodelSkyWork) BigmodelIFlytekSpark = BigmodelType(bigmodelIFlytekSpark) )
Functions ¶
This section is empty.
Types ¶
type AIDetectorInput ¶
type AIDetectorInput struct { Lang Lang Text AIDetectorText }
ai detector
func (AIDetectorInput) IsTextLengthOK ¶
func (r AIDetectorInput) IsTextLengthOK() bool
type AIDetectorText ¶
type AIDetectorText interface {
AIDetectorText() string
}
func NewAIDetectorText ¶
func NewAIDetectorText(v string) (AIDetectorText, error)
type BaiChuanInput ¶
type BaiChuanInput struct { Text BaiChuanText Sampling bool TopK TopK TopP TopP Temperature Temperature RepetitionPenalty RepetitionPenalty }
BaiChuan
type BaiChuanText ¶
type BaiChuanText interface {
BaiChuanText() string
}
baichuan text
func NewBaiChuanText ¶
func NewBaiChuanText(v string) (BaiChuanText, error)
type BigModelFinishedEvent ¶
type BigModelFinishedEvent struct { Account types.Account BigModelType BigmodelType }
type BigModelStartedEvent ¶
type BigModelStartedEvent struct { Account types.Account BigModelType BigmodelType }
type ChoiceQuestion ¶
type CompletionQuestion ¶
type GLM2Input ¶
type GLM2Input struct { Text GLM2Text Sampling bool History []History TopK TopK TopP TopP Temperature Temperature RepetitionPenalty RepetitionPenalty }
glm2
type IFlytekSparkInput ¶
type IFlytekSparkInput struct { Text IFlytekSparkText Sampling bool History []History TopK TopK TopP TopP Temperature Temperature RepetitionPenalty RepetitionPenalty }
iflytekspark
type IFlytekSparkText ¶
type IFlytekSparkText interface {
IFlytekSparkText() string
}
iflytekspark text
func NewIFlytekSparkText ¶
func NewIFlytekSparkText(v string) (IFlytekSparkText, error)
type LLAMA2Input ¶
type LLAMA2Input struct { Text LLAMA2Text Sampling bool History []History TopK TopK TopP TopP Temperature Temperature RepetitionPenalty RepetitionPenalty }
llama2
type LLAMA2Text ¶
type LLAMA2Text interface {
LLAMA2Text() string
}
llama2 text
func NewLLAMA2Text ¶
func NewLLAMA2Text(v string) (LLAMA2Text, error)
type LuoJiaRecord ¶
type LuoJiaRecordIndex ¶
type QuestionSubmission ¶
type QuestionSubmissionInfo ¶
type RepetitionPenalty ¶
type RepetitionPenalty interface {
RepetitionPenalty() float64
}
repetition penalty
func NewRepetitionPenalty ¶
func NewRepetitionPenalty(v float64) (RepetitionPenalty, error)
type SkyWorkInput ¶
type SkyWorkInput struct { Text SkyWorkText Sampling bool History []History TopK TopK TopP TopP Temperature Temperature RepetitionPenalty RepetitionPenalty }
skywork 13b
type SkyWorkText ¶
type SkyWorkText interface {
SkyWorkText() string
}
skywork text
func NewSkyWorkText ¶
func NewSkyWorkText(v string) (SkyWorkText, error)
type Temperature ¶
type Temperature interface {
Temperature() float64
}
temperature
func NewTemperature ¶
func NewTemperature(v float64) (Temperature, error)
type UserApiRecord ¶
type WuKongInferenceStartEvent ¶
type WuKongInferenceStartEvent struct { Account types.Account Desc WuKongPictureDesc Style string EsStyle string }
type WuKongPicture ¶
type WuKongPicture struct { Id string Owner types.Account OBSPath OBSPath Level WuKongPictureLevel Diggs []string DiggCount int Version int CreatedAt string WuKongPictureMeta }
wukong
func (*WuKongPicture) IsOfficial ¶
func (r *WuKongPicture) IsOfficial() bool
func (*WuKongPicture) SetDefaultDiggs ¶
func (r *WuKongPicture) SetDefaultDiggs()
type WuKongPictureDesc ¶
type WuKongPictureDesc interface {
WuKongPictureDesc() string
}
WuKongPictureDesc
func NewWuKongPictureDesc ¶
func NewWuKongPictureDesc(v string) (WuKongPictureDesc, error)
type WuKongPictureLevel ¶
type WuKongPictureLevel interface { WuKongPictureLevel() string Int() int IsOfficial() bool IsHot() bool }
wukong level
func NewWuKongPictureLevel ¶
func NewWuKongPictureLevel(v string) WuKongPictureLevel
func NewWuKongPictureLevelByNum ¶
func NewWuKongPictureLevelByNum(v int) WuKongPictureLevel
type WuKongPictureLikedEvent ¶
type WuKongPictureMeta ¶
type WuKongPictureMeta struct { Style string Desc WuKongPictureDesc }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.