Documentation ¶
Index ¶
Constants ¶
View Source
const (
CLAUDE = "claude-3-haiku-20240307"
)
Variables ¶
View Source
var (
ALL_MODELS = []string{
"sonar-small-online",
"sonar-medium-online",
"sonar-small-chat",
"sonar-medium-chat",
"claude-3-haiku-20240307",
"codellama-70b-instruct",
"mistral-7b-instruct",
"llava-v1.5-7b-wrapper",
"llava-v1.6-34b",
"mixtral-8x7b-instruct",
"mistral-medium",
"gemma-2b-it",
"gemma-7b-it",
"related",
}
)
Functions ¶
This section is empty.
Types ¶
type ChatClient ¶
type ChatClient struct { History []Message // contains filtered or unexported fields }
func NewChatClient ¶
func NewChatClient(debug bool, conversationMode bool) *ChatClient
func (*ChatClient) Backtrack ¶
func (c *ChatClient) Backtrack() error
func (*ChatClient) Close ¶
func (c *ChatClient) Close() error
func (*ChatClient) Connect ¶
func (c *ChatClient) Connect() error
func (*ChatClient) ReadForever ¶
func (c *ChatClient) ReadForever() error
func (*ChatClient) ReceiveMessage ¶
func (c *ChatClient) ReceiveMessage(timeout time.Duration) (string, error)
func (*ChatClient) SendMessage ¶
func (c *ChatClient) SendMessage(message string, model string) error
Click to show internal directories.
Click to hide internal directories.