Agent-backed store for runtime dev overrides of provider/model mappings.
Useful in tests or local development to pin specific model→provider mappings
without hitting the Hub API. Keyed by {provider, hf_model_id}.
Example
HuggingfaceClient.HardcodedMappings.add("groq", "meta-llama/Llama-3-8B", %{
"provider" => "groq",
"hf_model_id" => "meta-llama/Llama-3-8B",
"provider_id" => "llama-3-8b",
"status" => "live",
"task" => "conversational"
})
mapping = HuggingfaceClient.HardcodedMappings.get("groq", "meta-llama/Llama-3-8B")
Summary
Functions
Adds or replaces a mapping for {provider, model_id}. Last write wins.
Returns a specification to start this module under a supervisor.
Returns the mapping for {provider, model_id}, or nil if not present.
Removes the mapping for {provider, model_id}. No-op if not present.
Clears all runtime additions.
Functions
Adds or replaces a mapping for {provider, model_id}. Last write wins.
Returns a specification to start this module under a supervisor.
See Supervisor.
Returns the mapping for {provider, model_id}, or nil if not present.
Removes the mapping for {provider, model_id}. No-op if not present.
@spec reset() :: :ok
Clears all runtime additions.