Documentation
¶
Overview ¶
Package kilo provides Kilo AI Gateway integration for the LLM gateway.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Registration = providers.Registration{ Type: "kilo", New: New, PassthroughSemanticEnricher: passthroughSemanticEnricher, Discovery: providers.DiscoveryConfig{ DefaultBaseURL: defaultBaseURL, }, }
Registration provides factory registration for the Kilo AI provider.
Functions ¶
func New ¶
func New(cfg providers.ProviderConfig, opts providers.ProviderOptions) core.Provider
New creates a new Kilo AI provider.
Types ¶
type Provider ¶
type Provider struct {
*openai.ChatCompatible
}
Provider implements the core.Provider interface for Kilo AI. Kilo exposes OpenAI-compatible chat completions, streaming, tool calling, and model listing. Its provider/model IDs pass through unchanged.
func NewWithHTTPClient ¶
func NewWithHTTPClient(apiKey, baseURL string, httpClient *http.Client, hooks llmclient.Hooks) *Provider
NewWithHTTPClient creates a new Kilo AI provider with a custom HTTP client. If httpClient is nil, http.DefaultClient is used.
func (*Provider) Embeddings ¶
func (p *Provider) Embeddings(_ context.Context, _ *core.EmbeddingRequest) (*core.EmbeddingResponse, error)
Embeddings returns an error because Kilo AI does not expose an embeddings endpoint.
Click to show internal directories.
Click to hide internal directories.