providers

command
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Command providers inspects and configures providers at runtime.

It shows the provider registry that sits beside the model catalog: query whether a provider has a usable credential with AuthStatus, redirect a provider's traffic with SetOverride, and register a custom endpoint with NewSpecProvider. The package-level Complete resolves every request through the default registry, so an override applied here reaches the request below.

The API key is read from the provider's environment variable when StreamOptions.APIKey is empty:

DEEPSEEK_API_KEY=sk-... go run ./example/llm/providers

Jump to

Keyboard shortcuts

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