From 2fb8ef0dc8c045309ca9458384e359ca3cc68f80 Mon Sep 17 00:00:00 2001 From: Pedro Date: Tue, 17 Mar 2026 14:13:36 +0100 Subject: [PATCH] feat(providers): add dinference provider --- providers/dinference/logo.svg | 1 + providers/dinference/models/glm-4.7.toml | 25 +++++++++++++++++++ providers/dinference/models/glm-5.toml | 25 +++++++++++++++++++ providers/dinference/models/gpt-oss-120b.toml | 20 +++++++++++++++ providers/dinference/provider.toml | 5 ++++ 5 files changed, 76 insertions(+) create mode 100644 providers/dinference/logo.svg create mode 100644 providers/dinference/models/glm-4.7.toml create mode 100644 providers/dinference/models/glm-5.toml create mode 100644 providers/dinference/models/gpt-oss-120b.toml create mode 100644 providers/dinference/provider.toml diff --git a/providers/dinference/logo.svg b/providers/dinference/logo.svg new file mode 100644 index 000000000..e045c96fb --- /dev/null +++ b/providers/dinference/logo.svg @@ -0,0 +1 @@ + diff --git a/providers/dinference/models/glm-4.7.toml b/providers/dinference/models/glm-4.7.toml new file mode 100644 index 000000000..f77b7d2b2 --- /dev/null +++ b/providers/dinference/models/glm-4.7.toml @@ -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"] diff --git a/providers/dinference/models/glm-5.toml b/providers/dinference/models/glm-5.toml new file mode 100644 index 000000000..dd8aa3c7d --- /dev/null +++ b/providers/dinference/models/glm-5.toml @@ -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"] diff --git a/providers/dinference/models/gpt-oss-120b.toml b/providers/dinference/models/gpt-oss-120b.toml new file mode 100644 index 000000000..7c00da3e5 --- /dev/null +++ b/providers/dinference/models/gpt-oss-120b.toml @@ -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"] diff --git a/providers/dinference/provider.toml b/providers/dinference/provider.toml new file mode 100644 index 000000000..c22810a2d --- /dev/null +++ b/providers/dinference/provider.toml @@ -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"