Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OpenAIModels = []string{"gpt-3.5", "gpt-3.5-turbo"} GeminiModels = []string{"gemini-pro"} )
View Source
var ( ZhiPuAILite string = "chatglm_lite" ZhiPuAIStd string = "chatglm_std" ZhiPuAIPro string = "chatglm_pro" ZhiPuAITurbo string = "chatglm_turbo" // ChatGLM3 ZhiPuAIGLM3Turbo string = "glm-3-turbo" // ChatGLM4 ZhiPuAIGLM4 string = "glm-4" // Character LLM ZhiPuAICharGLM3 string = "charglm-3" )
View Source
var ZhiPuAIModels = []string{ZhiPuAILite, ZhiPuAIStd, ZhiPuAIPro, ZhiPuAITurbo, ZhiPuAIGLM3Turbo, ZhiPuAIGLM4}
Functions ¶
This section is empty.
Types ¶
type LLM ¶
type LLM interface { Type() LLMType Call([]byte) (Response, error) Validate(context.Context, ...langchainllms.CallOption) (Response, error) }
type ModelParams ¶
type UnknowLLM ¶
type UnknowLLM struct{}
func NewUnknowLLM ¶
func NewUnknowLLM() UnknowLLM
func (UnknowLLM) Validate ¶
func (unknown UnknowLLM) Validate(ctx context.Context, options ...langchainllms.CallOption) (Response, error)
Click to show internal directories.
Click to hide internal directories.