modelmatch

package
v0.10.13 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanonicalKey

func CanonicalKey(s string) string

CanonicalKey normalizes a model string for fuzzy matching.

The normal form: - trims whitespace - strips a single leading vendor namespace before the first slash - lowercases the result - removes all non-alphanumeric characters

This makes inputs such as "qwen/qwen3.6", "QWEN3.6", and "Qwen-3.6-27b-MLX-8bit" comparable under the same substring matching rules.

func Match

func Match(requested string, pool []string) []string

Match returns the pool entries whose canonical key contains the canonical key for requested as a substring. The pool order is preserved.

Types

This section is empty.

Jump to

Keyboard shortcuts

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