modeldiscover

package
v0.1.0 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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MaxInventoryModels = 10_000

MaxInventoryModels bounds remote and static inventory payloads.

Variables

This section is empty.

Functions

func BoundInventoryModels

func BoundInventoryModels(models []modelinventory.Model) ([]modelinventory.Model, []string)

BoundInventoryModels truncates model rows to MaxInventoryModels and returns warnings.

Types

type AnthropicModelsProvider

type AnthropicModelsProvider struct {
	BaseURL         string
	ModelsEndpoint  string
	APIKey          string
	APIKeys         []string
	HTTPClient      *http.Client
	CanonicalPrefix string
	// CompatibleModeAuth allows remote inventory without x-api-key when no key exists.
	CompatibleModeAuth bool
}

func (AnthropicModelsProvider) LoadModels

type CatalogAwareOpenAICompatibleModelsProvider

type CatalogAwareOpenAICompatibleModelsProvider struct {
	BaseURL           string
	APIKey            string
	APIKeys           []string
	Credentials       []string
	HTTPClient        *http.Client
	CanonicalPrefix   string
	PreserveVendorIDs bool
	Catalog           CatalogConfig
}

func (CatalogAwareOpenAICompatibleModelsProvider) LoadModels

type CatalogConfig

type CatalogConfig struct {
	Enabled *bool
	URL     string
	Timeout time.Duration
}

type GeminiModelsProvider

type GeminiModelsProvider struct {
	BaseURL    string
	APIKey     string
	APIKeys    []string
	HTTPClient *http.Client
}

func (GeminiModelsProvider) LoadModels

type OpenAICompatibleModelsProvider

type OpenAICompatibleModelsProvider struct {
	BaseURL           string
	ModelsEndpoint    string
	APIKey            string
	APIKeys           []string
	Credentials       []string
	HTTPClient        *http.Client
	CanonicalPrefix   string
	PreserveVendorIDs bool
	// CompatibleModeAuth allows remote inventory without Authorization when no key exists.
	CompatibleModeAuth bool
}

func (OpenAICompatibleModelsProvider) LoadModels

Jump to

Keyboard shortcuts

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