feat(providers): add dinference provider

This commit is contained in:
Pedro
2026-03-17 14:13:36 +01:00
parent 458a66c766
commit 2fb8ef0dc8
5 changed files with 76 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" class="lucide lucide-terminal h-5 w-5 text-primary"><path d="m4 17 6-6-6-6M12 19h8"/></svg>

After

Width:  |  Height:  |  Size: 253 B

+25
View File
@@ -0,0 +1,25 @@
name = "GLM-4.7"
family = "glm"
release_date = "2025-12"
last_updated = "2025-12"
attachment = false
reasoning = true
temperature = true
tool_call = true
knowledge = "2025-04"
open_weights = true
[interleaved]
field = "reasoning_content"
[cost]
input = 0.45
output = 1.65
[limit]
context = 200_000
output = 128_000
[modalities]
input = ["text"]
output = ["text"]
+25
View File
@@ -0,0 +1,25 @@
name = "GLM-5"
family = "glm"
release_date = "2026-02"
last_updated = "2026-02"
attachment = false
reasoning = true
temperature = true
tool_call = true
knowledge = "2025-04"
open_weights = true
[interleaved]
field = "reasoning_content"
[cost]
input = 0.75
output = 2.40
[limit]
context = 200_000
output = 128_000
[modalities]
input = ["text"]
output = ["text"]
@@ -0,0 +1,20 @@
name = "GPT OSS 120B"
release_date = "2025-08"
last_updated = "2025-08"
attachment = false
reasoning = false
temperature = true
tool_call = true
open_weights = true
[cost]
input = 0.0675
output = 0.27
[limit]
context = 131_072
output = 32_768
[modalities]
input = ["text"]
output = ["text"]
+5
View File
@@ -0,0 +1,5 @@
name = "DInference"
env = ["DINFERENCE_API_KEY"]
npm = "@ai-sdk/openai-compatible"
doc = "https://dinference.com"
api = "https://api.dinference.com/v1"