Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package model re-exports internal/model's LLM model-metadata registry (context windows, pricing, capability flags such as vision support) for external consumers that need to query or extend it directly - e.g. pkg/pdfsmart/vision.Config.Registry, which uses this to gate the vision-LLM fallback behind the configured model actually supporting image content blocks.

Index

Constants

This section is empty.

Variables

Global is the package-level registry populated at startup by internal/providers - the same instance internal/pdfsmart/vision.Config defaults to when Registry is left nil.

Functions

This section is empty.

Types

type Capabilities

type Capabilities = internalmodel.Capabilities

Capabilities describes what a specific model variant can do.

type ContextWindow

type ContextWindow = internalmodel.ContextWindow

ContextWindow describes the token budget for a model.

type Metadata

type Metadata = internalmodel.Metadata

Metadata aggregates all model-level metadata.

type Pricing

type Pricing = internalmodel.Pricing

Pricing holds per-token costs in USD per 1 million tokens (MTok). Zero values mean pricing is unknown or not applicable.

type Registry

type Registry = internalmodel.Registry

Registry is a lookup table from (provider, modelID) → Metadata. It is safe for concurrent reads; writes happen only at init time via Register or the package-level Global variable.

func NewRegistry

func NewRegistry() *Registry

NewRegistry creates an empty registry.

Jump to

Keyboard shortcuts

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