Documentation
¶
Overview ¶
Package hetzner provides Hetzner Inference API integration for the LLM gateway.
The "hetzner" provider routes to Hetzner's experimental OpenAI-compatible inference endpoint, so all transport goes through the shared chat-centric adapter and model IDs are forwarded unchanged.
Note: Hetzner declares this inference API as experimental. Breaking changes may ship without notice and there is no SLA. Hetzner does not document an embeddings endpoint; chat completions, model listing, and passthrough are the supported surfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Registration = providers.Registration{ Type: "hetzner", New: New, Discovery: providers.DiscoveryConfig{ DefaultBaseURL: defaultBaseURL, }, }
Registration provides factory registration for the Hetzner provider.
Functions ¶
func New ¶
func New(cfg providers.ProviderConfig, opts providers.ProviderOptions) core.Provider
New creates a new Hetzner provider.
Types ¶
type Provider ¶
type Provider struct {
*openai.ChatCompatible
}
Provider implements the core.Provider interface for Hetzner. Hetzner is OpenAI-compatible, so all transport goes through the shared chat-centric adapter: chat completions, model listing, and passthrough are exposed via the embedded *openai.ChatCompatible. Hetzner documents no embeddings endpoint, so Embeddings is overridden to fail fast with a typed error.
func (*Provider) Embeddings ¶
func (p *Provider) Embeddings(_ context.Context, _ *core.EmbeddingRequest) (*core.EmbeddingResponse, error)
Embeddings returns an error because Hetzner does not expose an embeddings endpoint.