Documentation ¶
Index ¶
- Variables
- func ListString() string
- type Anthropic
- func (a *Anthropic) BatchCancel(ctx context.Context, b *openai.Batch) error
- func (a *Anthropic) BatchReceive(ctx context.Context, b *openai.Batch) (outputs []openai.BatchOutput, ret error)
- func (a *Anthropic) BatchRefresh(ctx context.Context, b *openai.Batch) error
- func (a *Anthropic) BatchSend(ctx context.Context, b *openai.Batch) error
- func (a *Anthropic) BatchUpload(ctx context.Context, b *openai.Batch, inputs []openai.BatchInput) error
- func (a *Anthropic) Chat(ctx context.Context, req openai.ChatCompletionRequest) (c openai.ChatCompletionResponse, ret error)
- func (a *Anthropic) Complete(ctx context.Context, req openai.CompletionRequest) (c openai.CompletionResponse, err error)
- func (a *Anthropic) Embed(ctx context.Context, req openai.EmbeddingRequest) (e openai.EmbeddingResponse, err error)
- func (a *Anthropic) List(ctx context.Context) ([]openai.Model, error)
- type Daemon
- type Dify
- type Gemini
- func (g *Gemini) Chat(ctx context.Context, req openai.ChatCompletionRequest) (c openai.ChatCompletionResponse, err error)
- func (g *Gemini) Complete(ctx context.Context, req openai.CompletionRequest) (c openai.CompletionResponse, err error)
- func (g *Gemini) Embed(ctx context.Context, req openai.EmbeddingRequest) (e openai.EmbeddingResponse, err error)
- func (g *Gemini) List(ctx context.Context) ([]openai.Model, error)
- type OpenAI
- func (o *OpenAI) BatchCancel(ctx context.Context, batch *openai.Batch) error
- func (o *OpenAI) BatchReceive(ctx context.Context, batch *openai.Batch) (outputs []openai.BatchOutput, err error)
- func (o *OpenAI) BatchRefresh(ctx context.Context, batch *openai.Batch) error
- func (o *OpenAI) BatchSend(ctx context.Context, batch *openai.Batch) error
- func (o *OpenAI) BatchUpload(ctx context.Context, batch *openai.Batch, inputs []openai.BatchInput) error
- func (o *OpenAI) Chat(ctx context.Context, req openai.ChatCompletionRequest) (c openai.ChatCompletionResponse, err error)
- func (o *OpenAI) Complete(ctx context.Context, req openai.CompletionRequest) (c openai.CompletionResponse, err error)
- func (o *OpenAI) Embed(ctx context.Context, req openai.EmbeddingRequest) (e openai.EmbeddingResponse, err error)
- func (o *OpenAI) List(ctx context.Context) ([]openai.Model, error)
- type Vertex
- func (v *Vertex) BatchCancel(ctx context.Context, batch *openai.Batch) error
- func (v *Vertex) BatchReceive(ctx context.Context, batch *openai.Batch) (outputs []openai.BatchOutput, err error)
- func (v *Vertex) BatchRefresh(ctx context.Context, batch *openai.Batch) error
- func (v *Vertex) BatchSend(ctx context.Context, batch *openai.Batch) error
- func (v *Vertex) BatchUpload(ctx context.Context, batch *openai.Batch, inputs []openai.BatchInput) error
- func (v *Vertex) Chat(ctx context.Context, req openai.ChatCompletionRequest) (c openai.ChatCompletionResponse, err error)
- func (v *Vertex) Complete(ctx context.Context, req openai.CompletionRequest) (c openai.CompletionResponse, err error)
- func (v *Vertex) Embed(ctx context.Context, req openai.EmbeddingRequest) (e openai.EmbeddingResponse, ret error)
- func (v *Vertex) List(ctx context.Context) ([]openai.Model, error)
- type VertexC
- type VertexF
- type VertexP
Constants ¶
This section is empty.
Variables ¶
View Source
var Drivers = []string{"openai", "anthropic", "gemini", "dify", "vertex"}
Functions ¶
func ListString ¶
func ListString() string
Types ¶
type Anthropic ¶
type Anthropic struct { anthropic.Client // contains filtered or unexported fields }
Anthropic implements the driver interface for Anthropic's API
func NewAnthropic ¶
NewAnthropic creates a new Anthropic client.
func (*Anthropic) BatchCancel ¶
func (*Anthropic) BatchReceive ¶
func (*Anthropic) BatchRefresh ¶
func (*Anthropic) BatchUpload ¶
type Daemon ¶
type Daemon struct { OpenAI // contains filtered or unexported fields }
Daemon is the hairpin driver: basically, glorified IPC over HTTP.
Big think!
type Dify ¶
Dify is a workflow GUI thing that can be used to build LLM agents.
type Gemini ¶
type Gemini struct {
// contains filtered or unexported fields
}
Gemini implements the driver interface for Google's Gemini API
type OpenAI ¶
OpenAI is the most basic kind of driver, because it's the API that we're emulating.
Big think!
func (*OpenAI) BatchCancel ¶
func (*OpenAI) BatchReceive ¶
func (*OpenAI) BatchRefresh ¶
func (*OpenAI) BatchUpload ¶
type Vertex ¶
Vertex implements the driver interface using Google's Vertex AI API
func (*Vertex) BatchCancel ¶
func (*Vertex) BatchReceive ¶
func (*Vertex) BatchRefresh ¶
func (*Vertex) BatchUpload ¶
Click to show internal directories.
Click to hide internal directories.