vps

package
v0.76.2 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package vps is the self-hosted whisper-server provider for SpeechKit: an OpenAI-compatible endpoint a user runs themselves, so audio never reaches a commercial provider.

It is the same adapter as pkg/speechkit/stt/openaicompat with two differences that only make sense for a server the user owns: network validation accepts loopback and private addresses, and the request timeout tolerates a cold start.

Stability: Beta — API-checked; may change with a changelog callout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.74.0

type Options struct {
	// BaseURL is the whisper-server endpoint root.
	BaseURL string
	// APIKey is sent as a bearer token. Empty for unauthenticated servers.
	APIKey string
	// Model pins the served model. Empty selects "whisper-1".
	Model string
}

Options configures New.

type Provider

type Provider = openaicompat.Provider

Provider is the OpenAI-compatible adapter pointed at a self-hosted server.

func New

func New(opts Options) *Provider

New creates a provider for a self-hosted whisper-server. Loopback, private ranges and plain http are allowed because these deployments live inside a VPN, on a home LAN, or on localhost.

Jump to

Keyboard shortcuts

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