utils

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeDuplication

func DeDuplication(slice []string) []string

func MatchProvider added in v0.0.2

func MatchProvider(modelName string, ownedBy string, provider string) bool

MatchProvider matches a model/provider metadata pair to the provider filter.

func NormalizeProvider added in v0.0.2

func NormalizeProvider(provider string) string

NormalizeProvider canonicalizes provider aliases for filtering and persistence.

func ResolveOwnedByProvider added in v0.0.2

func ResolveOwnedByProvider(ownedBy string) string

ResolveOwnedByProvider infers provider from OpenAI-compatible `owned_by`.

func ResolveProvider added in v0.0.2

func ResolveProvider(modelName string) string

ResolveProvider infers provider from model naming rules to keep backend and frontend consistent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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