9router/open-sse/providers/registry/huggingface.js
decolua e53ce79abb refactor(open-sse): B1 consolidate media endpoint URLs into registry
- image/embed/tts/search base URLs derive from media.*Config.baseUrl /
  searchViaChat.endpoint (single source); handlers read PROVIDER_MEDIA.
- ~18 hardcoded endpoints moved: bfl/fal/stability/runway/hf/gemini/
  cloudflare/recraft/sdwebui/comfyui/nanobanana image, voyage embed,
  gemini/openrouter tts, chatSearch endpoints.
- Byte-identical: PROVIDERS 62 + alias 90 baselines, image buildUrl outputs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 13:58:12 +07:00

54 lines
1.1 KiB
JavaScript

export default {
"id": "huggingface",
"alias": "huggingface",
display: {
"name": "HuggingFace",
"icon": "face",
"color": "#FFD21E",
"textIcon": "HF",
"website": "https://huggingface.co",
"notice": {
"apiKeyUrl": "https://huggingface.co/settings/tokens"
}
},
category: "apikey",
uiAlias: "hf",
authType: "apikey",
hiddenKinds: ["tts"],
aliases: ["hf"],
"transport": null,
media: {
imageConfig: { baseUrl: "https://api-inference.huggingface.co/models" }
},
"models": [
{
"id": "black-forest-labs/FLUX.1-schnell",
"name": "FLUX.1 Schnell",
"type": "image",
"params": []
},
{
"id": "stabilityai/stable-diffusion-xl-base-1.0",
"name": "SDXL Base 1.0",
"type": "image",
"params": []
},
{
"id": "openai/whisper-large-v3",
"name": "Whisper Large v3 (HF)",
"type": "stt",
"params": [
"language"
]
},
{
"id": "openai/whisper-small",
"name": "Whisper Small (HF)",
"type": "stt",
"params": [
"language"
]
}
]
};