@openclaw/groq-provider 2026.9.4 → 2026.9.5

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.
@@ -0,0 +1,30 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <!--
3
+ Adapted from OpenClaw ui/public/provider-icons/ProviderIcon-groq.svg.
4
+ Source: https://github.com/steipete/CodexBar/blob/215efbd39ad58acb4b0cd637c407d63e6183bc8d/Sources/CodexBar/Resources/ProviderIcon-groq.svg
5
+
6
+ MIT License
7
+ Copyright (c) 2026 Peter Steinberger
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Names and marks remain the property of their respective owners.
28
+ -->
29
+ <path fill="currentColor" stroke="none" d="M12.036 2c-3.853-.035-7 3-7.036 6.781-.035 3.782 3.055 6.872 6.908 6.907h2.42v-2.566h-2.292c-2.407.028-4.38-1.866-4.408-4.23-.029-2.362 1.901-4.298 4.308-4.326h.1c2.407 0 4.358 1.915 4.365 4.278v6.305c0 2.342-1.944 4.25-4.323 4.279a4.375 4.375 0 01-3.033-1.252l-1.851 1.818A7 7 0 0012.029 22h.092c3.803-.056 6.858-3.083 6.879-6.816v-6.5C18.907 4.963 15.817 2 12.036 2z" />
30
+ </svg>
Binary file
@@ -0,0 +1,173 @@
1
+ //#region extensions/groq/openclaw.plugin.json
2
+ var openclaw_plugin_default = {
3
+ id: "groq",
4
+ categories: ["models"],
5
+ activation: { "onStartup": false },
6
+ enabledByDefault: true,
7
+ providerCatalogEntry: "./provider-discovery.ts",
8
+ providers: ["groq"],
9
+ providerEndpoints: [{
10
+ "endpointClass": "groq-native",
11
+ "hosts": ["api.groq.com"]
12
+ }],
13
+ providerRequest: { "providers": { "groq": { "family": "groq" } } },
14
+ setup: { "providers": [{
15
+ "id": "groq",
16
+ "authMethods": ["api-key"],
17
+ "envVars": ["GROQ_API_KEY"]
18
+ }] },
19
+ providerAuthChoices: [{
20
+ "provider": "groq",
21
+ "method": "api-key",
22
+ "choiceId": "groq-api-key",
23
+ "appGuidedSecret": true,
24
+ "choiceLabel": "Groq API key",
25
+ "choiceHint": "Fast OpenAI-compatible inference",
26
+ "groupId": "groq",
27
+ "groupLabel": "Groq",
28
+ "optionKey": "groqApiKey",
29
+ "cliFlag": "--groq-api-key",
30
+ "cliOption": "--groq-api-key <key>",
31
+ "cliDescription": "Groq API key"
32
+ }],
33
+ modelCatalog: {
34
+ "modelsDev": { "groq": "groq" },
35
+ "providers": { "groq": {
36
+ "baseUrl": "https://api.groq.com/openai/v1",
37
+ "api": "openai-completions",
38
+ "defaultModel": "openai/gpt-oss-120b",
39
+ "models": [
40
+ {
41
+ "id": "groq/compound",
42
+ "name": "Compound",
43
+ "reasoning": false,
44
+ "input": ["text"],
45
+ "contextWindow": 131072,
46
+ "maxTokens": 8192,
47
+ "cost": {
48
+ "input": 0,
49
+ "output": 0,
50
+ "cacheRead": 0,
51
+ "cacheWrite": 0
52
+ }
53
+ },
54
+ {
55
+ "id": "groq/compound-mini",
56
+ "name": "Compound Mini",
57
+ "reasoning": false,
58
+ "input": ["text"],
59
+ "contextWindow": 131072,
60
+ "maxTokens": 8192,
61
+ "cost": {
62
+ "input": 0,
63
+ "output": 0,
64
+ "cacheRead": 0,
65
+ "cacheWrite": 0
66
+ }
67
+ },
68
+ {
69
+ "id": "llama-3.1-8b-instant",
70
+ "name": "Llama 3.1 8B Instant",
71
+ "status": "deprecated",
72
+ "replacedBy": "openai/gpt-oss-20b",
73
+ "reasoning": false,
74
+ "input": ["text"],
75
+ "contextWindow": 131072,
76
+ "maxTokens": 131072,
77
+ "cost": {
78
+ "input": .05,
79
+ "output": .08,
80
+ "cacheRead": 0,
81
+ "cacheWrite": 0
82
+ }
83
+ },
84
+ {
85
+ "id": "llama-3.3-70b-versatile",
86
+ "name": "Llama 3.3 70B Versatile",
87
+ "status": "deprecated",
88
+ "replacedBy": "openai/gpt-oss-120b",
89
+ "reasoning": false,
90
+ "input": ["text"],
91
+ "contextWindow": 131072,
92
+ "maxTokens": 32768,
93
+ "cost": {
94
+ "input": .59,
95
+ "output": .79,
96
+ "cacheRead": 0,
97
+ "cacheWrite": 0
98
+ }
99
+ },
100
+ {
101
+ "id": "openai/gpt-oss-120b",
102
+ "name": "GPT OSS 120B",
103
+ "reasoning": true,
104
+ "input": ["text"],
105
+ "contextWindow": 131072,
106
+ "maxTokens": 65536,
107
+ "cost": {
108
+ "input": .15,
109
+ "output": .6,
110
+ "cacheRead": .075,
111
+ "cacheWrite": 0
112
+ }
113
+ },
114
+ {
115
+ "id": "openai/gpt-oss-20b",
116
+ "name": "GPT OSS 20B",
117
+ "reasoning": true,
118
+ "input": ["text"],
119
+ "contextWindow": 131072,
120
+ "maxTokens": 65536,
121
+ "cost": {
122
+ "input": .075,
123
+ "output": .3,
124
+ "cacheRead": .0375,
125
+ "cacheWrite": 0
126
+ }
127
+ },
128
+ {
129
+ "id": "openai/gpt-oss-safeguard-20b",
130
+ "name": "Safety GPT OSS 20B",
131
+ "reasoning": true,
132
+ "input": ["text"],
133
+ "contextWindow": 131072,
134
+ "maxTokens": 65536,
135
+ "cost": {
136
+ "input": .075,
137
+ "output": .3,
138
+ "cacheRead": .037,
139
+ "cacheWrite": 0
140
+ }
141
+ },
142
+ {
143
+ "id": "qwen/qwen3.6-27b",
144
+ "name": "Qwen 3.6 27B",
145
+ "reasoning": true,
146
+ "input": ["text", "image"],
147
+ "contextWindow": 131072,
148
+ "maxTokens": 16384,
149
+ "cost": {
150
+ "input": .6,
151
+ "output": 3,
152
+ "cacheRead": 0,
153
+ "cacheWrite": 0
154
+ }
155
+ }
156
+ ]
157
+ } },
158
+ "discovery": { "groq": "refreshable" }
159
+ },
160
+ contracts: { "mediaUnderstandingProviders": ["groq"] },
161
+ mediaUnderstandingProviderMetadata: { "groq": {
162
+ "capabilities": ["audio"],
163
+ "defaultModels": { "audio": "whisper-large-v3-turbo" },
164
+ "autoPriority": { "audio": 20 }
165
+ } },
166
+ configSchema: {
167
+ "type": "object",
168
+ "additionalProperties": false,
169
+ "properties": {}
170
+ }
171
+ };
172
+ //#endregion
173
+ export { openclaw_plugin_default as t };
package/dist/index.js CHANGED
@@ -1,177 +1,7 @@
1
1
  import { groqMediaUnderstandingProvider } from "./media-understanding-provider.js";
2
+ import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-D8U6uSHC.mjs";
2
3
  import { createAssistantMessageEventStream, streamSimple } from "openclaw/plugin-sdk/llm";
3
4
  import { defineSingleProviderPluginEntry } from "openclaw/plugin-sdk/provider-entry";
4
- //#region extensions/groq/openclaw.plugin.json
5
- var openclaw_plugin_default = {
6
- id: "groq",
7
- categories: ["models", "media"],
8
- activation: { "onStartup": false },
9
- enabledByDefault: true,
10
- providers: ["groq"],
11
- providerEndpoints: [{
12
- "endpointClass": "groq-native",
13
- "hosts": ["api.groq.com"]
14
- }],
15
- providerRequest: { "providers": { "groq": { "family": "groq" } } },
16
- setup: { "providers": [{
17
- "id": "groq",
18
- "authMethods": ["api-key"],
19
- "envVars": ["GROQ_API_KEY"]
20
- }] },
21
- providerAuthChoices: [{
22
- "provider": "groq",
23
- "method": "api-key",
24
- "choiceId": "groq-api-key",
25
- "appGuidedSecret": true,
26
- "choiceLabel": "Groq API key",
27
- "choiceHint": "Fast OpenAI-compatible inference",
28
- "groupId": "groq",
29
- "groupLabel": "Groq",
30
- "optionKey": "groqApiKey",
31
- "cliFlag": "--groq-api-key",
32
- "cliOption": "--groq-api-key <key>",
33
- "cliDescription": "Groq API key"
34
- }],
35
- modelCatalog: {
36
- "modelsDev": { "groq": "groq" },
37
- "providers": { "groq": {
38
- "baseUrl": "https://api.groq.com/openai/v1",
39
- "api": "openai-completions",
40
- "defaultModel": "openai/gpt-oss-120b",
41
- "models": [
42
- {
43
- "id": "groq/compound",
44
- "name": "Compound",
45
- "reasoning": false,
46
- "input": ["text"],
47
- "contextWindow": 131072,
48
- "maxTokens": 8192,
49
- "cost": {
50
- "input": 0,
51
- "output": 0,
52
- "cacheRead": 0,
53
- "cacheWrite": 0
54
- }
55
- },
56
- {
57
- "id": "groq/compound-mini",
58
- "name": "Compound Mini",
59
- "reasoning": false,
60
- "input": ["text"],
61
- "contextWindow": 131072,
62
- "maxTokens": 8192,
63
- "cost": {
64
- "input": 0,
65
- "output": 0,
66
- "cacheRead": 0,
67
- "cacheWrite": 0
68
- }
69
- },
70
- {
71
- "id": "llama-3.1-8b-instant",
72
- "name": "Llama 3.1 8B Instant",
73
- "status": "deprecated",
74
- "replacedBy": "openai/gpt-oss-20b",
75
- "reasoning": false,
76
- "input": ["text"],
77
- "contextWindow": 131072,
78
- "maxTokens": 131072,
79
- "cost": {
80
- "input": .05,
81
- "output": .08,
82
- "cacheRead": 0,
83
- "cacheWrite": 0
84
- }
85
- },
86
- {
87
- "id": "llama-3.3-70b-versatile",
88
- "name": "Llama 3.3 70B Versatile",
89
- "status": "deprecated",
90
- "replacedBy": "openai/gpt-oss-120b",
91
- "reasoning": false,
92
- "input": ["text"],
93
- "contextWindow": 131072,
94
- "maxTokens": 32768,
95
- "cost": {
96
- "input": .59,
97
- "output": .79,
98
- "cacheRead": 0,
99
- "cacheWrite": 0
100
- }
101
- },
102
- {
103
- "id": "openai/gpt-oss-120b",
104
- "name": "GPT OSS 120B",
105
- "reasoning": true,
106
- "input": ["text"],
107
- "contextWindow": 131072,
108
- "maxTokens": 65536,
109
- "cost": {
110
- "input": .15,
111
- "output": .6,
112
- "cacheRead": .075,
113
- "cacheWrite": 0
114
- }
115
- },
116
- {
117
- "id": "openai/gpt-oss-20b",
118
- "name": "GPT OSS 20B",
119
- "reasoning": true,
120
- "input": ["text"],
121
- "contextWindow": 131072,
122
- "maxTokens": 65536,
123
- "cost": {
124
- "input": .075,
125
- "output": .3,
126
- "cacheRead": .0375,
127
- "cacheWrite": 0
128
- }
129
- },
130
- {
131
- "id": "openai/gpt-oss-safeguard-20b",
132
- "name": "Safety GPT OSS 20B",
133
- "reasoning": true,
134
- "input": ["text"],
135
- "contextWindow": 131072,
136
- "maxTokens": 65536,
137
- "cost": {
138
- "input": .075,
139
- "output": .3,
140
- "cacheRead": .037,
141
- "cacheWrite": 0
142
- }
143
- },
144
- {
145
- "id": "qwen/qwen3.6-27b",
146
- "name": "Qwen 3.6 27B",
147
- "reasoning": true,
148
- "input": ["text", "image"],
149
- "contextWindow": 131072,
150
- "maxTokens": 16384,
151
- "cost": {
152
- "input": .6,
153
- "output": 3,
154
- "cacheRead": 0,
155
- "cacheWrite": 0
156
- }
157
- }
158
- ]
159
- } },
160
- "discovery": { "groq": "refreshable" }
161
- },
162
- contracts: { "mediaUnderstandingProviders": ["groq"] },
163
- mediaUnderstandingProviderMetadata: { "groq": {
164
- "capabilities": ["audio"],
165
- "defaultModels": { "audio": "whisper-large-v3-turbo" },
166
- "autoPriority": { "audio": 20 }
167
- } },
168
- configSchema: {
169
- "type": "object",
170
- "additionalProperties": false,
171
- "properties": {}
172
- }
173
- };
174
- //#endregion
175
5
  //#region extensions/groq/index.ts
176
6
  const GROQ_OVERSIZED_RECOVERY_MODEL_ID = "llama-3.3-70b-versatile";
177
7
  const GROQ_FALLBACK_MAX_TOKENS = 1024;
@@ -0,0 +1,19 @@
1
+ import { t as openclaw_plugin_default } from "./.setup/openclaw.plugin-D8U6uSHC.mjs";
2
+ import { buildManifestModelProviderConfig } from "openclaw/plugin-sdk/provider-model-metadata";
3
+ //#region extensions/groq/provider-discovery.ts
4
+ const PROVIDER_ID = "groq";
5
+ const groqProviderDiscovery = {
6
+ id: PROVIDER_ID,
7
+ label: "Groq",
8
+ docsPath: "/providers/groq",
9
+ auth: [],
10
+ staticCatalog: {
11
+ order: "simple",
12
+ run: async () => ({ provider: buildManifestModelProviderConfig({
13
+ providerId: PROVIDER_ID,
14
+ catalog: openclaw_plugin_default.modelCatalog.providers.groq
15
+ }) })
16
+ }
17
+ };
18
+ //#endregion
19
+ export { groqProviderDiscovery as default };
@@ -1,15 +1,22 @@
1
1
  {
2
2
  "id": "groq",
3
- "categories": ["models", "media"],
3
+ "categories": [
4
+ "models"
5
+ ],
4
6
  "activation": {
5
7
  "onStartup": false
6
8
  },
7
9
  "enabledByDefault": true,
8
- "providers": ["groq"],
10
+ "providerCatalogEntry": "./dist/provider-discovery.js",
11
+ "providers": [
12
+ "groq"
13
+ ],
9
14
  "providerEndpoints": [
10
15
  {
11
16
  "endpointClass": "groq-native",
12
- "hosts": ["api.groq.com"]
17
+ "hosts": [
18
+ "api.groq.com"
19
+ ]
13
20
  }
14
21
  ],
15
22
  "providerRequest": {
@@ -23,8 +30,12 @@
23
30
  "providers": [
24
31
  {
25
32
  "id": "groq",
26
- "authMethods": ["api-key"],
27
- "envVars": ["GROQ_API_KEY"]
33
+ "authMethods": [
34
+ "api-key"
35
+ ],
36
+ "envVars": [
37
+ "GROQ_API_KEY"
38
+ ]
28
39
  }
29
40
  ]
30
41
  },
@@ -58,7 +69,9 @@
58
69
  "id": "groq/compound",
59
70
  "name": "Compound",
60
71
  "reasoning": false,
61
- "input": ["text"],
72
+ "input": [
73
+ "text"
74
+ ],
62
75
  "contextWindow": 131072,
63
76
  "maxTokens": 8192,
64
77
  "cost": {
@@ -72,7 +85,9 @@
72
85
  "id": "groq/compound-mini",
73
86
  "name": "Compound Mini",
74
87
  "reasoning": false,
75
- "input": ["text"],
88
+ "input": [
89
+ "text"
90
+ ],
76
91
  "contextWindow": 131072,
77
92
  "maxTokens": 8192,
78
93
  "cost": {
@@ -88,7 +103,9 @@
88
103
  "status": "deprecated",
89
104
  "replacedBy": "openai/gpt-oss-20b",
90
105
  "reasoning": false,
91
- "input": ["text"],
106
+ "input": [
107
+ "text"
108
+ ],
92
109
  "contextWindow": 131072,
93
110
  "maxTokens": 131072,
94
111
  "cost": {
@@ -104,7 +121,9 @@
104
121
  "status": "deprecated",
105
122
  "replacedBy": "openai/gpt-oss-120b",
106
123
  "reasoning": false,
107
- "input": ["text"],
124
+ "input": [
125
+ "text"
126
+ ],
108
127
  "contextWindow": 131072,
109
128
  "maxTokens": 32768,
110
129
  "cost": {
@@ -118,7 +137,9 @@
118
137
  "id": "openai/gpt-oss-120b",
119
138
  "name": "GPT OSS 120B",
120
139
  "reasoning": true,
121
- "input": ["text"],
140
+ "input": [
141
+ "text"
142
+ ],
122
143
  "contextWindow": 131072,
123
144
  "maxTokens": 65536,
124
145
  "cost": {
@@ -132,7 +153,9 @@
132
153
  "id": "openai/gpt-oss-20b",
133
154
  "name": "GPT OSS 20B",
134
155
  "reasoning": true,
135
- "input": ["text"],
156
+ "input": [
157
+ "text"
158
+ ],
136
159
  "contextWindow": 131072,
137
160
  "maxTokens": 65536,
138
161
  "cost": {
@@ -146,7 +169,9 @@
146
169
  "id": "openai/gpt-oss-safeguard-20b",
147
170
  "name": "Safety GPT OSS 20B",
148
171
  "reasoning": true,
149
- "input": ["text"],
172
+ "input": [
173
+ "text"
174
+ ],
150
175
  "contextWindow": 131072,
151
176
  "maxTokens": 65536,
152
177
  "cost": {
@@ -160,7 +185,10 @@
160
185
  "id": "qwen/qwen3.6-27b",
161
186
  "name": "Qwen 3.6 27B",
162
187
  "reasoning": true,
163
- "input": ["text", "image"],
188
+ "input": [
189
+ "text",
190
+ "image"
191
+ ],
164
192
  "contextWindow": 131072,
165
193
  "maxTokens": 16384,
166
194
  "cost": {
@@ -178,11 +206,15 @@
178
206
  }
179
207
  },
180
208
  "contracts": {
181
- "mediaUnderstandingProviders": ["groq"]
209
+ "mediaUnderstandingProviders": [
210
+ "groq"
211
+ ]
182
212
  },
183
213
  "mediaUnderstandingProviderMetadata": {
184
214
  "groq": {
185
- "capabilities": ["audio"],
215
+ "capabilities": [
216
+ "audio"
217
+ ],
186
218
  "defaultModels": {
187
219
  "audio": "whisper-large-v3-turbo"
188
220
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openclaw/groq-provider",
3
- "version": "2026.9.4",
3
+ "version": "2026.9.5",
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.9.4"
21
+ "pluginApi": ">=2026.9.5"
22
22
  },
23
23
  "build": {
24
- "openclawVersion": "2026.9.4",
24
+ "openclawVersion": "2026.9.5",
25
25
  "bundledDist": false
26
26
  },
27
27
  "release": {
@@ -35,10 +35,12 @@
35
35
  "files": [
36
36
  "dist/**",
37
37
  "openclaw.plugin.json",
38
- "README.md"
38
+ "README.md",
39
+ "assets/icon.png",
40
+ "assets/activity.svg"
39
41
  ],
40
42
  "peerDependencies": {
41
- "openclaw": ">=2026.9.4"
43
+ "openclaw": ">=2026.9.5"
42
44
  },
43
45
  "peerDependenciesMeta": {
44
46
  "openclaw": {