modelaccesspolicy

package
v0.25.3 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PruneDefaultPolicy added in v0.25.0

func PruneDefaultPolicy(req router.Request, _ router.Response) error

PruneDefaultPolicy ensures invalid and ineffectual model resources are removed from the default ModelAccessPolicy. Custom policies are intentionally left intact so their legacy resources remain visible for users to remediate. This handler removes: - Models that no longer exist - Models and default aliases that are not LLM usage types - Duplicates - Explicit model references when a wildcard is present

Wildcard suffix patterns (e.g. "claude-haiku-4-5*") are always kept, even when they currently match no models, since they apply to future models as well.

Types

This section is empty.

Jump to

Keyboard shortcuts

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