Documentation ¶
Index ¶
- func NewGLM(log logger.Logger, uri string) llm.LLM
- type CompletionResult
- type GLM
- func (o *GLM) Chat(ctx context.Context, stream bool, history []map[string]string, ...) (map[string]int, error)
- func (o *GLM) Completion(ctx context.Context, prompt prompts.PromptTemplate, ...) ([]string, map[string]int, error)
- func (o *GLM) GetAssistantModel() string
- func (o *GLM) GetSystemModel() string
- func (o *GLM) GetUserModel() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CompletionResult ¶
type GLM ¶
type GLM struct {
// contains filtered or unexported fields
}
func (*GLM) Chat ¶
func (o *GLM) Chat(ctx context.Context, stream bool, history []map[string]string, answers chan<- map[string]string) (map[string]int, error)
todo: not supported
func (*GLM) Completion ¶
func (*GLM) GetAssistantModel ¶
func (*GLM) GetSystemModel ¶
func (*GLM) GetUserModel ¶
Click to show internal directories.
Click to hide internal directories.