Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the provider.Provider interface for the AIML API (https://docs.aimlapi.com) — an OpenAI-compatible gateway exposing many third-party models behind a single chat completion endpoint.
func NewProvider ¶
NewProvider creates a new AIML API client.
func (*Provider) ChatCompletion ¶
func (p *Provider) ChatCompletion(ctx context.Context, req provider.ChatRequest) (*provider.ChatResponse, error)
ChatCompletion sends a chat completion request to AIML API.
Click to show internal directories.
Click to hide internal directories.