Versions in this module Expand all Collapse all v0 v0.0.9 Jul 25, 2024 Changes in this version + type LLMV2 struct + func NewLLMV2(apiKey, apiSecret string, opt *OptionV2) (*LLMV2, error) + func (llm *LLMV2) CheckSupport(_ llms.LLMSupportType) bool + func (llm *LLMV2) Request(ctx context.Context, input llms.Input, _ llms.ToolBox) (*llms.Output, error) + type ModelType int + type OptionV2 struct + func NewOptionV2() *OptionV2 + func (p *OptionV2) SetHost(host, model string) *OptionV2 + func (p *OptionV2) SetHttpClient(val *http.Client) *OptionV2 + type ReqMsg struct + Content string + Role string + type ReqParamV2 struct + GenerateLength int + LengthPenalty float32 + MinLen int + RepetitionPenalty float32 + Temperature float32 + TopK int + TopP float32 + type RequestV2 struct + Messages []*ReqMsg + Model string + Param ReqParamV2 + type RequestV3 struct + Intent string + Messages []*ReqMsg + type RespArgsV3 struct + Messages RespMsgV3 + RequestId string + type RespDataV2 struct + FinishReason int + Reply string + Status int + Usage RespUsageV2 + type RespMsgV3 struct + Addition string + Author string + CardId string + CreatedAt string + Text string + Timestamp string + Type string + type RespUsageV2 struct + CompletionTokens int64 + PromptTokens int64 + TotalTokens int64 + type ResponseV2 struct + Code int + CodeMsg string + RespData RespDataV2 + TraceId string + type ResponseV3 struct + Arguments []RespArgsV3 + AskId string + CardType string + ConversationId string + RequestId string + Target string + Type int