Documentation ¶
Index ¶
- type LLM
- type ModelType
- type Option
- func (op *Option) SetClient(val *http.Client) *Option
- func (op *Option) SetHost(val string) *Option
- func (op *Option) SetMaxNewTokens(val int64) *Option
- func (op *Option) SetMaxPromptTokens(val int64) *Option
- func (op *Option) SetMinNewTokens(val int64) *Option
- func (op *Option) SetRegion(val string) *Option
- func (op *Option) SetTemperature(val float32) *Option
- func (op *Option) SetTopK(val int64) *Option
- func (op *Option) SetTopP(val float32) *Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LLM ¶
type LLM struct {
// contains filtered or unexported fields
}
func (*LLM) CheckSupport ¶ added in v0.0.2
func (llm *LLM) CheckSupport(_ llms.LLMSupportType) bool
type ModelType ¶
type ModelType string
const ( ModelTypeSkylarkLitePublic ModelType = "skylark-lite-public" ModelTypeSkylarkPlusPublic ModelType = "skylark-plus-public" ModelTypeSkylarkProPublic ModelType = "skylark-pro-public" ModelTypeSkylark2Pro4k ModelType = "Skylark2-pro-4k" ModelTypeSkylark2Lite8k ModelType = "skylark2-lite-8k" ModelTypeSkylark2Pro32k ModelType = "skylark2-pro-32k" ModelTypeMoonshot8KV1 ModelType = "moonshot-v1-8k" ModelTypeMoonshot32KV1 ModelType = "moonshot-v1-32k" ModelTypeMoonshot128KV1 ModelType = "moonshot-v1-128k" )
type Option ¶
type Option struct {
// contains filtered or unexported fields
}
func (*Option) SetMaxNewTokens ¶
func (*Option) SetMaxPromptTokens ¶
func (*Option) SetMinNewTokens ¶
func (*Option) SetTemperature ¶
Click to show internal directories.
Click to hide internal directories.