Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConvAI ¶
type ConvAI struct { ChatSystemInstruction []byte ChatInstruction []byte PromptKeys map[string][]byte ModelType map[string]string MongoDB *mongo.Collection ModelKwargs []struct { MaxTokens int `json:"max_tokens"` Temperature float64 `json:"temperature"` Stream bool `json:"stream"` StopSequences []string `json:"stop_sequences"` } APIKey []byte }
type LLM ¶
type LLM interface { // Define common methods that both LLMs should have StreamCompleteChat(input0 string, input1 string, input2 string) (string, error) StreamChat(input0 string, input1 string, input2 string) <-chan string Chat(input0 string, input1 string, input2 string) (string, error) }
Define a common interface that both LLM types will implement.
Click to show internal directories.
Click to hide internal directories.