Documentation ¶
Index ¶
- type Anthropic
- type ChatGPT
- func (c *ChatGPT) Completion(ctx context.Context, prompt Prompt) (io.Reader, error)
- func (c *ChatGPT) CreateAudio(ctx context.Context, text string) ([]byte, error)
- func (c *ChatGPT) CreateImage(ctx context.Context, prompt string) ([]byte, error)
- func (c *ChatGPT) CreateTranscript(ctx context.Context, audio []byte) (string, error)
- func (c *ChatGPT) WithModel(model string) error
- type Dummy
- type Ollama
- type Prompt
- type Vertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anthropic ¶
type Anthropic struct { Token string Model anthropic.ModelConfig }
func NewAnthropic ¶
func (*Anthropic) Completion ¶
type ChatGPT ¶
type ChatGPT struct { Token string Model openai.ModelConfig }
func NewChatGPT ¶
func (*ChatGPT) Completion ¶
func (*ChatGPT) CreateAudio ¶
func (*ChatGPT) CreateImage ¶
func (*ChatGPT) CreateTranscript ¶
type Ollama ¶
func (*Ollama) Completion ¶
type Prompt ¶
type Prompt interface { GetPurpose() string GetHistory() ([]string, []string) GetQuestion() string GetReferences() [][]byte GetResponseFormat() []string }
--- Prompts and Messages
type Vertex ¶
type Vertex struct { Token string ProjectID string Model google.ModelConfig }
func (*Vertex) Completion ¶
Click to show internal directories.
Click to hide internal directories.