Documentation
¶
Overview ¶
Package attribution provides model-to-author mapping functionality across multiple providers. It supports three attribution modes to handle different provider scenarios:
- Provider-only: All models from a specific provider belong to an author
- Provider + patterns: Only matching models from a provider, then cross-provider attribution
- Global patterns: Direct pattern matching across all providers
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Apply ¶ added in v0.0.20
Apply populates author.Models in the catalog using attribution patterns from authors.yaml. This is the primary entry point for applying attributions.
The function:
- Builds attribution mappings from catalog's authors
- Matches models to authors based on patterns
- Populates author.Models for each matched author
Example:
if err := attribution.Apply(catalog); err != nil {
return fmt.Errorf("failed to apply attributions: %w", err)
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.