vps

package
v0.69.2 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

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