Skip to content

Commit d1c1306

Browse files
authored
feat: add Hugging Face Inference provider (#61)
* feat: add Hugging Face Inference provider - Add Hugging Face provider configuration with OpenAI-compatible API - Include moonshotai/Kimi-K2-Instruct model with Groq routing - Include deepseek-ai/DeepSeek-V3-0324 model - Include deepseek-ai/DeepSeek-R1-0528 model - All model configurations match their implementations in other providers * names = huggingface ids * Update model names in HuggingFace TOML files
1 parent 151da87 commit d1c1306

File tree

4 files changed

+71
-0
lines changed

4 files changed

+71
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
id = "deepseek-ai/DeepSeek-R1-0528"
2+
name = "DeepSeek-R1-0528"
3+
release_date = "2025-05-28"
4+
last_updated = "2025-05-28"
5+
attachment = false
6+
reasoning = true
7+
temperature = true
8+
knowledge = "2025-05"
9+
tool_call = true
10+
open_weights = true
11+
12+
[cost]
13+
input = 3
14+
output = 5
15+
16+
[limit]
17+
context = 163_840
18+
output = 163_840
19+
20+
[modalities]
21+
input = ["text"]
22+
output = ["text"]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
id = "deepseek-ai/DeepSeek-V3-0324"
2+
name = "DeepSeek-V3-0324"
3+
release_date = "2025-03-24"
4+
last_updated = "2025-03-24"
5+
attachment = false
6+
reasoning = false
7+
temperature = true
8+
knowledge = "2024-10"
9+
tool_call = true
10+
open_weights = true
11+
12+
[cost]
13+
input = 1.25
14+
output = 1.25
15+
16+
[limit]
17+
context = 16384
18+
output = 8192
19+
20+
[modalities]
21+
input = ["text"]
22+
output = ["text"]
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
id = "moonshotai/Kimi-K2-Instruct:groq"
2+
name = "Kimi-K2-Instruct"
3+
release_date = "2025-07-14"
4+
last_updated = "2025-07-14"
5+
attachment = false
6+
reasoning = false
7+
temperature = true
8+
tool_call = true
9+
knowledge = "2024-10"
10+
open_weights = true
11+
12+
[cost]
13+
input = 1
14+
output = 3
15+
16+
[limit]
17+
context = 131_072
18+
output = 16_384
19+
20+
[modalities]
21+
input = ["text"]
22+
output = ["text"]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name = "Hugging Face"
2+
env = ["HF_TOKEN"]
3+
npm = "@ai-sdk/openai-compatible"
4+
api = "https://router.huggingface.co/v1"
5+
doc = "https://huggingface.co/docs/inference-providers"

0 commit comments

Comments
 (0)