glm_6b

package
v0.0.0-...-04ebf03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGLM

func NewGLM(log logger.Logger, uri string) llm.LLM

Types

type CompletionResult

type CompletionResult struct {
	Response string     `json:"response"`
	History  [][]string `json:"history"`
	Status   int        `json:"status"`
	Time     string     `json:"time"`
}

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 (o *GLM) Completion(ctx context.Context, prompt prompts.PromptTemplate, parameters map[string]string) ([]string, map[string]int, error)

func (*GLM) GetAssistantModel

func (o *GLM) GetAssistantModel() string

func (*GLM) GetSystemModel

func (o *GLM) GetSystemModel() string

func (*GLM) GetUserModel

func (o *GLM) GetUserModel() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL