zhipu

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelGLM4Plus     = "GLM-4-Plus"
	ModelGLM40520     = "GLM-4-0520"
	ModelGLM4Long     = "GLM-4-Long"
	ModelGLM4AirX     = "GLM-4-AirX"
	ModelGLM4Air      = "GLM-4-Air"
	ModelGLM4Flash    = "GLM-4-Flash"
	ModelGLM4AllTools = "GLM-4-AllTools"
	ModelGLM4         = "GLM-4"
	ModelGLM4VPlus    = "GLM-4V-Plus"
	ModelGLM4V        = "GLM-4V"
	ModelCogVideoX    = "CogVideoX"
	ModelCogView3Plus = "CogView-3-Plus"
	ModelCogView3     = "CogView-3"
	ModelEmbedding3   = "Embedding-3"
	ModelEmbedding2   = "Embedding-2"
	ModelCharGLM3     = "CharGLM-3"
	ModelEmohaa       = "Emohaa"
	ModelCodeGeeX4    = "CodeGeeX-4"
)

Variables

Functions

This section is empty.

Types

type LLM

type LLM struct {
	// contains filtered or unexported fields
}

func (*LLM) Ask

func (lm *LLM) Ask(messages []llm.ChatMessage, config llm.ChatConfig, callback func(answer string)) (string, llm.Usage, error)

func (*LLM) BatterAsk

func (lm *LLM) BatterAsk(messages []llm.ChatMessage, callback func(answer string)) (string, llm.Usage, error)

func (*LLM) BestAsk

func (lm *LLM) BestAsk(messages []llm.ChatMessage, callback func(answer string)) (string, llm.Usage, error)

func (*LLM) BestEmbedding

func (lm *LLM) BestEmbedding(text string) ([]byte, llm.Usage, error)

func (*LLM) BestMakeImage

func (lm *LLM) BestMakeImage(prompt string, config llm.GCConfig) ([]string, llm.Usage, error)

func (*LLM) BestMakeVideo

func (lm *LLM) BestMakeVideo(prompt string, config llm.GCConfig) ([]string, []string, llm.Usage, error)

func (*LLM) BestMultiAsk

func (lm *LLM) BestMultiAsk(messages []llm.ChatMessage, callback func(answer string)) (string, llm.Usage, error)

func (*LLM) CodeInterpreterAsk

func (lm *LLM) CodeInterpreterAsk(messages []llm.ChatMessage, callback func(answer string)) (string, llm.Usage, error)

func (*LLM) Embedding

func (lm *LLM) Embedding(text, model string) ([]byte, llm.Usage, error)

func (*LLM) FastAsk

func (lm *LLM) FastAsk(messages []llm.ChatMessage, callback func(answer string)) (string, llm.Usage, error)

func (*LLM) FastEmbedding

func (lm *LLM) FastEmbedding(text string) ([]byte, llm.Usage, error)

func (*LLM) FastMakeImage

func (lm *LLM) FastMakeImage(prompt string, config llm.GCConfig) ([]string, llm.Usage, error)

func (*LLM) FastMakeVideo

func (lm *LLM) FastMakeVideo(prompt string, config llm.GCConfig) ([]string, []string, llm.Usage, error)

func (*LLM) LongAsk

func (lm *LLM) LongAsk(messages []llm.ChatMessage, callback func(answer string)) (string, llm.Usage, error)

func (*LLM) MakeImage

func (lm *LLM) MakeImage(prompt string, config llm.GCConfig) ([]string, llm.Usage, error)

func (*LLM) MakeVideo

func (lm *LLM) MakeVideo(prompt string, config llm.GCConfig) ([]string, []string, llm.Usage, error)

func (*LLM) MultiAsk

func (lm *LLM) MultiAsk(messages []llm.ChatMessage, callback func(answer string)) (string, llm.Usage, error)

func (*LLM) Support

func (lm *LLM) Support() llm.Support

func (*LLM) WebSearchAsk

func (lm *LLM) WebSearchAsk(messages []llm.ChatMessage, callback func(answer string)) (string, llm.Usage, error)

Jump to

Keyboard shortcuts

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