modelview

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FactualAliasesForRuntime

func FactualAliasesForRuntime(c modeldb.ResolvedCatalog, runtimeID string) map[string]string

func FactualAliasesForService

func FactualAliasesForService(c modeldb.Catalog, serviceID string) map[string]string

func ModelForOffering

func ModelForOffering(c modeldb.Catalog, ref modeldb.OfferingRef, opts ProjectionOptions) (llm.Model, bool)

func ModelsForRuntime

func ModelsForRuntime(c modeldb.ResolvedCatalog, runtimeID string, routableOnly bool, opts ProjectionOptions) llm.Models

func ModelsForService

func ModelsForService(c modeldb.Catalog, serviceID string, opts ProjectionOptions) llm.Models

func VisibleModelsForDockerMRRuntime

func VisibleModelsForDockerMRRuntime(ctx context.Context, client *http.Client, baseURL string, opts ProjectionOptions) (llm.Models, error)

func VisibleModelsForOllamaRuntime

func VisibleModelsForOllamaRuntime(ctx context.Context, client *http.Client, baseURL string, opts ProjectionOptions) (llm.Models, error)

func VisibleModelsForRuntime

func VisibleModelsForRuntime(ctx context.Context, base modeldb.Catalog, runtimeID string, source modeldb.Source, opts ProjectionOptions) (llm.Models, error)

Types

type ProjectionOptions

type ProjectionOptions struct {
	ProviderName          string
	IncludePricing        bool
	ExcludeBuiltinAliases bool
}

Jump to

Keyboard shortcuts

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