mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-29 06:31:32 +00:00
feat: provider modules — ProviderProfile ABC, 29 providers, fetch_models, transport single-path Introduces providers/ as the single source of truth for every inference provider. All 29 providers declared with correct data cross-checked against auth.py, runtime_provider.py and auxiliary_client.py. Rebased onto main (30307a980). Incorporates post-salvage fixes from56724147e(gmi aux model google/gemini-3.1-flash-lite-preview, already set in providers/gmi.py).
20 lines
580 B
Python
20 lines
580 B
Python
"""Hugging Face provider profile."""
|
|
|
|
from providers import register_provider
|
|
from providers.base import ProviderProfile
|
|
|
|
huggingface = ProviderProfile(
|
|
name="huggingface",
|
|
aliases=("hf", "hugging-face", "huggingface-hub"),
|
|
env_vars=("HF_TOKEN",),
|
|
display_name="HuggingFace",
|
|
description="HuggingFace Inference API",
|
|
signup_url="https://huggingface.co/settings/tokens",
|
|
fallback_models=(
|
|
"Qwen/Qwen3.5-72B-Instruct",
|
|
"deepseek-ai/DeepSeek-V3.2",
|
|
),
|
|
base_url="https://router.huggingface.co/v1",
|
|
)
|
|
|
|
register_provider(huggingface)
|