aimlapi

package
v0.0.0-...-32dd017 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: MIT Imports: 9 Imported by: 0

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

func NewProvider(log logger.Logger, apiKey, model string) *Provider

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.

Jump to

Keyboard shortcuts

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