@openclaw/groq-provider 2026.10.10 → 2026.11.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.setup/{openclaw.plugin-DG6R2XGq.mjs → openclaw.plugin-N7cAUo3f.mjs} +18 -3
- package/dist/.source-module-urls/b80ee9f08faa638983128bf61d4ae4f734a78a73ec496ac93f0a4f51546907b0.json +1 -0
- package/dist/index.js +15 -3
- package/dist/provider-discovery.js +1 -1
- package/openclaw.plugin.json +21 -0
- package/package.json +4 -4
- package/dist/.source-module-urls/f8100a0365b5c6f926391da23f2a7a0469b6dc9bcfa42fd4e4f7a6542867dabf.json +0 -1
- package/dist/media-understanding-provider.js +0 -17
|
@@ -49,7 +49,12 @@ var openclaw_plugin_default = {
|
|
|
49
49
|
"output": .6,
|
|
50
50
|
"cacheRead": .075,
|
|
51
51
|
"cacheWrite": 0
|
|
52
|
-
}
|
|
52
|
+
},
|
|
53
|
+
"compat": { "supportedReasoningEfforts": [
|
|
54
|
+
"low",
|
|
55
|
+
"medium",
|
|
56
|
+
"high"
|
|
57
|
+
] }
|
|
53
58
|
},
|
|
54
59
|
{
|
|
55
60
|
"id": "openai/gpt-oss-20b",
|
|
@@ -63,7 +68,12 @@ var openclaw_plugin_default = {
|
|
|
63
68
|
"output": .3,
|
|
64
69
|
"cacheRead": .0375,
|
|
65
70
|
"cacheWrite": 0
|
|
66
|
-
}
|
|
71
|
+
},
|
|
72
|
+
"compat": { "supportedReasoningEfforts": [
|
|
73
|
+
"low",
|
|
74
|
+
"medium",
|
|
75
|
+
"high"
|
|
76
|
+
] }
|
|
67
77
|
},
|
|
68
78
|
{
|
|
69
79
|
"id": "openai/gpt-oss-safeguard-20b",
|
|
@@ -77,7 +87,12 @@ var openclaw_plugin_default = {
|
|
|
77
87
|
"output": .3,
|
|
78
88
|
"cacheRead": .037,
|
|
79
89
|
"cacheWrite": 0
|
|
80
|
-
}
|
|
90
|
+
},
|
|
91
|
+
"compat": { "supportedReasoningEfforts": [
|
|
92
|
+
"low",
|
|
93
|
+
"medium",
|
|
94
|
+
"high"
|
|
95
|
+
] }
|
|
81
96
|
},
|
|
82
97
|
{
|
|
83
98
|
"id": "qwen/qwen3.6-27b",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"entries":[{"output":"index.js","source":"extensions/groq/index.ts"},{"output":"provider-discovery.js","source":"extensions/groq/provider-discovery.ts"}],"chunks":[{"output":".setup/openclaw.plugin-N7cAUo3f.mjs","sha256":"84dddc51516f4202ffb14370142978e99a56d0ac58595e29fee12f6f686f79d9","facadeSource":null,"sources":["extensions/groq/openclaw.plugin.json"]},{"output":"index.js","sha256":"d7b1036687d3881d0abd4098beea51fd899cb3319f7860cac3934e1264c0b17e","facadeSource":"extensions/groq/index.ts","sources":["extensions/groq/index.ts"]},{"output":"provider-discovery.js","sha256":"3bab215ad2543c5a7661df500c0e5630c27b01ddf2edb1eebae06267b29e7c76","facadeSource":"extensions/groq/provider-discovery.ts","sources":["extensions/groq/provider-discovery.ts"]}],"unrenderedSources":[]}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-N7cAUo3f.mjs";
|
|
2
|
+
import { transcribeOpenAiCompatibleAudio } from "openclaw/plugin-sdk/media-understanding";
|
|
3
3
|
import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
|
|
4
4
|
import { createPayloadPatchStreamWrapper } from "openclaw/plugin-sdk/provider-stream-shared";
|
|
5
5
|
// extensions/groq/index.ts
|
|
6
|
+
const DEFAULT_GROQ_AUDIO_BASE_URL = "https://api.groq.com/openai/v1";
|
|
7
|
+
const DEFAULT_GROQ_AUDIO_MODEL = "whisper-large-v3-turbo";
|
|
6
8
|
function wrapGroqParsedReasoning(streamFn) {
|
|
7
9
|
return createPayloadPatchStreamWrapper(streamFn, ({ model, payload }) => {
|
|
8
10
|
if (model.id.startsWith("qwen/") && model.reasoning && payload.reasoning_effort !== "none") payload.reasoning_format = "parsed";
|
|
@@ -24,7 +26,17 @@ var groq_default = defineSingleProviderPluginEntry({
|
|
|
24
26
|
wrapSimpleCompletionStreamFn: (ctx) => wrapGroqParsedReasoning(ctx.streamFn)
|
|
25
27
|
},
|
|
26
28
|
register(api) {
|
|
27
|
-
api.registerMediaUnderstandingProvider(
|
|
29
|
+
api.registerMediaUnderstandingProvider({
|
|
30
|
+
id: "groq",
|
|
31
|
+
capabilities: ["audio"],
|
|
32
|
+
defaultModels: { audio: DEFAULT_GROQ_AUDIO_MODEL },
|
|
33
|
+
autoPriority: { audio: 20 },
|
|
34
|
+
transcribeAudio: (req) => transcribeOpenAiCompatibleAudio({
|
|
35
|
+
...req,
|
|
36
|
+
defaultBaseUrl: DEFAULT_GROQ_AUDIO_BASE_URL,
|
|
37
|
+
defaultModel: DEFAULT_GROQ_AUDIO_MODEL
|
|
38
|
+
})
|
|
39
|
+
});
|
|
28
40
|
}
|
|
29
41
|
});
|
|
30
42
|
export { groq_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-
|
|
1
|
+
import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-N7cAUo3f.mjs";
|
|
2
2
|
import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-model-metadata";
|
|
3
3
|
// extensions/groq/provider-discovery.ts
|
|
4
4
|
const PROVIDER_ID = "groq";
|
package/openclaw.plugin.json
CHANGED
|
@@ -79,6 +79,13 @@
|
|
|
79
79
|
"output": 0.6,
|
|
80
80
|
"cacheRead": 0.075,
|
|
81
81
|
"cacheWrite": 0
|
|
82
|
+
},
|
|
83
|
+
"compat": {
|
|
84
|
+
"supportedReasoningEfforts": [
|
|
85
|
+
"low",
|
|
86
|
+
"medium",
|
|
87
|
+
"high"
|
|
88
|
+
]
|
|
82
89
|
}
|
|
83
90
|
},
|
|
84
91
|
{
|
|
@@ -95,6 +102,13 @@
|
|
|
95
102
|
"output": 0.3,
|
|
96
103
|
"cacheRead": 0.0375,
|
|
97
104
|
"cacheWrite": 0
|
|
105
|
+
},
|
|
106
|
+
"compat": {
|
|
107
|
+
"supportedReasoningEfforts": [
|
|
108
|
+
"low",
|
|
109
|
+
"medium",
|
|
110
|
+
"high"
|
|
111
|
+
]
|
|
98
112
|
}
|
|
99
113
|
},
|
|
100
114
|
{
|
|
@@ -111,6 +125,13 @@
|
|
|
111
125
|
"output": 0.3,
|
|
112
126
|
"cacheRead": 0.037,
|
|
113
127
|
"cacheWrite": 0
|
|
128
|
+
},
|
|
129
|
+
"compat": {
|
|
130
|
+
"supportedReasoningEfforts": [
|
|
131
|
+
"low",
|
|
132
|
+
"medium",
|
|
133
|
+
"high"
|
|
134
|
+
]
|
|
114
135
|
}
|
|
115
136
|
},
|
|
116
137
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openclaw/groq-provider",
|
|
3
|
-
"version": "2026.
|
|
3
|
+
"version": "2026.11.5-beta.1",
|
|
4
4
|
"description": "OpenClaw Groq media-understanding provider.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
"minHostVersion": ">=2026.6.8"
|
|
19
19
|
},
|
|
20
20
|
"compat": {
|
|
21
|
-
"pluginApi": ">=2026.
|
|
21
|
+
"pluginApi": ">=2026.11.5-beta.1"
|
|
22
22
|
},
|
|
23
23
|
"build": {
|
|
24
|
-
"openclawVersion": "2026.
|
|
24
|
+
"openclawVersion": "2026.11.5-beta.1",
|
|
25
25
|
"bundledDist": false
|
|
26
26
|
},
|
|
27
27
|
"release": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"assets/activity.svg"
|
|
41
41
|
],
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"openclaw": ">=2026.
|
|
43
|
+
"openclaw": ">=2026.11.5-beta.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"openclaw": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"entries":[{"output":"index.js","source":"extensions/groq/index.ts"},{"output":"media-understanding-provider.js","source":"extensions/groq/media-understanding-provider.ts"},{"output":"provider-discovery.js","source":"extensions/groq/provider-discovery.ts"}],"chunks":[{"output":".setup/openclaw.plugin-DG6R2XGq.mjs","sha256":"4983b6c430363a52d91651771e9e37e2a2bf19e6b71702abdb362676275b2604","facadeSource":null,"sources":["extensions/groq/openclaw.plugin.json"]},{"output":"index.js","sha256":"b3f9e08c25a2463156e797f3aa13d659b0ff87130f086f1552d6a30fdd6b4df4","facadeSource":"extensions/groq/index.ts","sources":["extensions/groq/index.ts"]},{"output":"media-understanding-provider.js","sha256":"5eb0ef77510a3c821a220de61d51f07cf591b052b246d85f1ad6e7cea62f1c3b","facadeSource":"extensions/groq/media-understanding-provider.ts","sources":["extensions/groq/media-understanding-provider.ts"]},{"output":"provider-discovery.js","sha256":"10f951d586a76f5877db2a08c40dff64797d2426abbc177ba3eae23cfe52d06e","facadeSource":"extensions/groq/provider-discovery.ts","sources":["extensions/groq/provider-discovery.ts"]}],"unrenderedSources":[]}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { transcribeOpenAiCompatibleAudio } from "openclaw/plugin-sdk/media-understanding";
|
|
2
|
-
// extensions/groq/media-understanding-provider.ts
|
|
3
|
-
const DEFAULT_GROQ_AUDIO_BASE_URL = "https://api.groq.com/openai/v1";
|
|
4
|
-
const DEFAULT_GROQ_AUDIO_MODEL = "whisper-large-v3-turbo";
|
|
5
|
-
const groqMediaUnderstandingProvider = {
|
|
6
|
-
id: "groq",
|
|
7
|
-
capabilities: ["audio"],
|
|
8
|
-
defaultModels: { audio: DEFAULT_GROQ_AUDIO_MODEL },
|
|
9
|
-
autoPriority: { audio: 20 },
|
|
10
|
-
transcribeAudio: (req) => transcribeOpenAiCompatibleAudio({
|
|
11
|
-
...req,
|
|
12
|
-
baseUrl: req.baseUrl ?? DEFAULT_GROQ_AUDIO_BASE_URL,
|
|
13
|
-
defaultBaseUrl: DEFAULT_GROQ_AUDIO_BASE_URL,
|
|
14
|
-
defaultModel: DEFAULT_GROQ_AUDIO_MODEL
|
|
15
|
-
})
|
|
16
|
-
};
|
|
17
|
-
export { groqMediaUnderstandingProvider };
|