hetzner

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 4 Imported by: 0

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

View Source
var Registration = providers.Registration{
	Type: "hetzner",
	New:  New,
	Discovery: providers.DiscoveryConfig{
		DefaultBaseURL: defaultBaseURL,
	},
}

Registration provides factory registration for the Hetzner provider.

Functions

func New

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

Embeddings returns an error because Hetzner does not expose an embeddings endpoint.

Jump to

Keyboard shortcuts

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