vps

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider = openaicompat.Provider

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

func New

func New(baseURL, apiKey string) *Provider

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

func NewWithModel

func NewWithModel(baseURL, apiKey, model string) *Provider

NewWithModel creates a self-hosted whisper-server provider pinned to model. An empty model defaults to "whisper-1".

Jump to

Keyboard shortcuts

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