models

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ChatMessageRoleSystem    = "system"
	ChatMessageRoleUser      = "user"
	ChatMessageRoleAssistant = "assistant"
	ChatMessageRoleFunction  = "function"
	ChatMessageRoleTool      = "tool"
)

Variables

View Source
var ClaudeModels = []string{
	"claude-3-5-sonnet-20240620",
	"claude-3-opus-20240229",
	"claude-3-sonnet-20240229",
	"claude-3-haiku-20240307",
}
View Source
var FireworksAIModels = []string{
	"accounts/fireworks/models/firefunction-v2",
	"accounts/fireworks/models/firellava-13b",
	"accounts/fireworks/models/mixtral-8x7b-instruct",
	"accounts/fireworks/models/mixtral-8x22b-instruct",
	"accounts/fireworks/models/hermes-2-pro-mistral-7b",
	"accounts/fireworks/models/llama-v3-70b-instruct-hf",
	"accounts/fireworks/models/llama-v3-8b-hf",
	"accounts/fireworks/models/mixtral-8x7b-instruct-hf",
	"accounts/fireworks/models/qwen2-72b-instruct",
}
View Source
var OpenAiModels = []string{"gpt-4o", "gpt-4-turbo", "gpt-4", "gpt-3.5-turbo"}

Functions

This section is empty.

Types

type ChatMessage

type ChatMessage struct {
	Role    string
	Content string
}

type Chatter added in v1.1.0

type Chatter interface {
	GetResponse(messages []ChatMessage, streamChan chan<- string) string
}

type HistoryEntry

type HistoryEntry struct {
	Name     string        `yaml:"name"`
	Date     time.Time     `yaml:"date"`
	Messages []ChatMessage `yaml:"messages"`
}

func (HistoryEntry) Print

func (e HistoryEntry) Print()

func (HistoryEntry) PrintLastMessage

func (e HistoryEntry) PrintLastMessage()

Jump to

Keyboard shortcuts

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