@warlock.js/ai-groq 5.31.0 → 5.33.0
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/CHANGELOG.md +12 -0
- package/esm/config.type.d.mts +3 -5
- package/esm/config.type.d.mts.map +1 -1
- package/esm/known-models.d.mts +5 -6
- package/esm/known-models.d.mts.map +1 -1
- package/esm/sdk.d.mts +2 -4
- package/esm/sdk.d.mts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ All notable changes to `@warlock.js/ai-groq` are documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). `@warlock.js/*` packages are released in lockstep — every package shares the same version number, so a version below may list only the changes that affected this package.
|
|
6
6
|
|
|
7
|
+
## 5.33.0 - 2026-10-19
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Lockstep release; package APIs are unchanged.
|
|
12
|
+
|
|
13
|
+
## 5.32.0 - 2026-10-18
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- Pin the package development compiler to TypeScript 7.0.2 and use explicit Node types and source roots with supported module resolution.
|
|
18
|
+
|
|
7
19
|
## 5.31.0 - 2026-10-18
|
|
8
20
|
|
|
9
21
|
### Added
|
package/esm/config.type.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OpenAISDKConfig } from "@warlock.js/ai-openai";
|
|
2
2
|
import { EmbedderConfig, ModelConfig, ModelPricing } from "@warlock.js/ai";
|
|
3
|
-
|
|
4
3
|
//#region ../../packages/ai-groq/src/config.type.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Configuration for the Groq SDK adapter.
|
|
@@ -37,7 +36,7 @@ import { EmbedderConfig, ModelConfig, ModelPricing } from "@warlock.js/ai";
|
|
|
37
36
|
* pricing: { "llama-3.3-70b-versatile": { input: 0.59, output: 0.79 } },
|
|
38
37
|
* });
|
|
39
38
|
*/
|
|
40
|
-
type GroqSDKConfig = Omit<OpenAISDKConfig, "baseURL" | "provider"> & {
|
|
39
|
+
export type GroqSDKConfig = Omit<OpenAISDKConfig, "baseURL" | "provider"> & {
|
|
41
40
|
/**
|
|
42
41
|
* Override Groq's OpenAI-compatible endpoint. Defaults to
|
|
43
42
|
* `https://api.groq.com/openai/v1` when omitted — set this only to
|
|
@@ -75,7 +74,7 @@ type GroqSDKConfig = Omit<OpenAISDKConfig, "baseURL" | "provider"> & {
|
|
|
75
74
|
* groq.model({ name: "openai/gpt-oss-120b" }); // vision + reasoning auto-true
|
|
76
75
|
* groq.model({ name: "custom-llama", vision: true }); // explicit override
|
|
77
76
|
*/
|
|
78
|
-
type GroqModelConfig = ModelConfig & {
|
|
77
|
+
export type GroqModelConfig = ModelConfig & {
|
|
79
78
|
/**
|
|
80
79
|
* Override the auto-inferred vision capability. When omitted, the
|
|
81
80
|
* adapter checks the model id against Groq's known multimodal families
|
|
@@ -116,7 +115,6 @@ type GroqModelConfig = ModelConfig & {
|
|
|
116
115
|
* // Will construct, but Groq currently has no embeddings model to call.
|
|
117
116
|
* groq.embedder({ name: "some-future-embeddings-model" });
|
|
118
117
|
*/
|
|
119
|
-
type GroqEmbedderConfig = EmbedderConfig;
|
|
118
|
+
export type GroqEmbedderConfig = EmbedderConfig;
|
|
120
119
|
//#endregion
|
|
121
|
-
export { GroqEmbedderConfig, GroqModelConfig, GroqSDKConfig };
|
|
122
120
|
//# sourceMappingURL=config.type.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.type.d.mts","names":[],"sources":["../../../../../../../packages/ai-groq/src/config.type.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.type.d.mts","names":[],"sources":["../../../../../../../packages/ai-groq/src/config.type.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsCY,gBAAgB,KAAK;;;;;;EAM/B;;;;;;EAMA;;;;;;;EAOA,UAAU,eAAe;;;;;;;;;;;;;;;;;;;YAoBf,kBAAkB;;;;;;;;EAQ5B;;;;;;;;;EASA;;;;;;;;EAQA;;;;;;;;;;;;;;;;YAiBU,qBAAqB"}
|
package/esm/known-models.d.mts
CHANGED
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
* Verified against Groq's "OpenAI Compatibility" docs (mid-2026).
|
|
9
9
|
* Override via `new GroqSDK({ baseURL })` if Groq ever relocates it.
|
|
10
10
|
*/
|
|
11
|
-
declare const GROQ_BASE_URL = "https://api.groq.com/openai/v1";
|
|
11
|
+
export declare const GROQ_BASE_URL = "https://api.groq.com/openai/v1";
|
|
12
12
|
/**
|
|
13
13
|
* The provider label every model produced by `GroqSDK` self-identifies
|
|
14
14
|
* with. Flows through to `ModelContract.provider`, `AgentReport.model`,
|
|
15
15
|
* logs, and any provider-aware middleware. Kept as a constant so the
|
|
16
16
|
* wrapper and the inner `OpenAISDK` agree on one spelling.
|
|
17
17
|
*/
|
|
18
|
-
declare const GROQ_PROVIDER = "groq";
|
|
18
|
+
export declare const GROQ_PROVIDER = "groq";
|
|
19
19
|
/**
|
|
20
20
|
* Infer whether a Groq-hosted model id supports vision based on the
|
|
21
21
|
* known multimodal-family substrings. Unknown ids default to `false`
|
|
@@ -29,7 +29,7 @@ declare const GROQ_PROVIDER = "groq";
|
|
|
29
29
|
* inferVisionCapability("llama-3.3-70b-versatile"); // → false
|
|
30
30
|
* inferVisionCapability("llama-3.1-8b-instant"); // → false
|
|
31
31
|
*/
|
|
32
|
-
declare function inferVisionCapability(modelId: string): boolean;
|
|
32
|
+
export declare function inferVisionCapability(modelId: string): boolean;
|
|
33
33
|
/**
|
|
34
34
|
* Infer whether a Groq-hosted model id is a reasoning model based on
|
|
35
35
|
* the known reasoning-family substrings. Unknown ids default to `false`
|
|
@@ -41,7 +41,7 @@ declare function inferVisionCapability(modelId: string): boolean;
|
|
|
41
41
|
* inferReasoningCapability("deepseek-r1-distill-llama-70b"); // → true
|
|
42
42
|
* inferReasoningCapability("llama-3.3-70b-versatile"); // → false
|
|
43
43
|
*/
|
|
44
|
-
declare function inferReasoningCapability(modelId: string): boolean;
|
|
44
|
+
export declare function inferReasoningCapability(modelId: string): boolean;
|
|
45
45
|
/**
|
|
46
46
|
* Curated list of current Groq production chat model ids (mid-2026),
|
|
47
47
|
* for autocomplete, docs, and default selection. NOT exhaustive and NOT
|
|
@@ -56,7 +56,6 @@ declare function inferReasoningCapability(modelId: string): boolean;
|
|
|
56
56
|
* family; vision + reasoning capable.
|
|
57
57
|
* - `deepseek-r1-distill-llama-70b` — DeepSeek-R1-style reasoning.
|
|
58
58
|
*/
|
|
59
|
-
declare const GROQ_KNOWN_MODELS: readonly ["llama-3.3-70b-versatile", "llama-3.1-8b-instant", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "deepseek-r1-distill-llama-70b"];
|
|
59
|
+
export declare const GROQ_KNOWN_MODELS: readonly ["llama-3.3-70b-versatile", "llama-3.1-8b-instant", "openai/gpt-oss-120b", "openai/gpt-oss-20b", "deepseek-r1-distill-llama-70b"];
|
|
60
60
|
//#endregion
|
|
61
|
-
export { GROQ_BASE_URL, GROQ_KNOWN_MODELS, GROQ_PROVIDER, inferReasoningCapability, inferVisionCapability };
|
|
62
61
|
//# sourceMappingURL=known-models.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"known-models.d.mts","names":[],"sources":["../../../../../../../packages/ai-groq/src/known-models.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"known-models.d.mts","names":[],"sources":["../../../../../../../packages/ai-groq/src/known-models.ts"],"mappings":";;;;;;;;;;qBASa;;;;;;;qBAQA;;;;;;;;;;;;;;wBAkEG,sBAAsB;;;;;;;;;;;;wBAiBtB,yBAAyB;;;;;;;;;;;;;;;qBAoB5B"}
|
package/esm/sdk.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GroqEmbedderConfig, GroqModelConfig, GroqSDKConfig } from "./config.type.mjs";
|
|
2
2
|
import { EmbedderContract, ModelContract, ModelPricing, SDKAdapterContract } from "@warlock.js/ai";
|
|
3
|
-
|
|
4
3
|
//#region ../../packages/ai-groq/src/sdk.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Groq-backed implementation of `SDKAdapterContract`.
|
|
@@ -47,7 +46,7 @@ import { EmbedderContract, ModelContract, ModelPricing, SDKAdapterContract } fro
|
|
|
47
46
|
* const ai = { agent, tool, systemPrompt, groq: new GroqSDK({ apiKey }) };
|
|
48
47
|
* const myAgent = ai.agent({ model: ai.groq.model({ name: "llama-3.1-8b-instant" }) });
|
|
49
48
|
*/
|
|
50
|
-
declare class GroqSDK implements SDKAdapterContract {
|
|
49
|
+
export declare class GroqSDK implements SDKAdapterContract {
|
|
51
50
|
/**
|
|
52
51
|
* The wrapped OpenAI-compatible adapter, pre-pointed at Groq's
|
|
53
52
|
* `baseURL` and labeled with the `"groq"` provider. All real wire work
|
|
@@ -105,7 +104,6 @@ declare class GroqSDK implements SDKAdapterContract {
|
|
|
105
104
|
* Llama models are listed as "Enterprise – Contact Sales" with no public
|
|
106
105
|
* price, so they stay unpriced — pass `pricing` for them.
|
|
107
106
|
*/
|
|
108
|
-
declare const GROQ_DEFAULT_PRICING: Readonly<Record<string, ModelPricing>>;
|
|
107
|
+
export declare const GROQ_DEFAULT_PRICING: Readonly<Record<string, ModelPricing>>;
|
|
109
108
|
//#endregion
|
|
110
|
-
export { GROQ_DEFAULT_PRICING, GroqSDK };
|
|
111
109
|
//# sourceMappingURL=sdk.d.mts.map
|
package/esm/sdk.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sdk.d.mts","names":[],"sources":["../../../../../../../packages/ai-groq/src/sdk.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sdk.d.mts","names":[],"sources":["../../../../../../../packages/ai-groq/src/sdk.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4Da,mBAAmB;;;;;;;mBAOb;mBACA;mBACA;EAEjB,YAAmB,QAAQ;;;;;;;;;;;;;;;;;;EAqCpB,MAAM,QAAQ,kBAAkB;;;;;;;EAsB1B,MAAM,cAAc,iBAAiB;;;;;;;;;;;EAc3C,SAAS,QAAQ,qBAAqB;;;;;;;;;;;;qBAgClC,sBAAsB,SAAS,eAAe"}
|
package/package.json
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"directory": "packages/ai-groq"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@warlock.js/ai": "5.
|
|
19
|
+
"@warlock.js/ai": "5.33.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@warlock.js/ai-openai": "5.
|
|
23
|
-
"@warlock.js/logger": "5.
|
|
22
|
+
"@warlock.js/ai-openai": "5.33.0",
|
|
23
|
+
"@warlock.js/logger": "5.33.0"
|
|
24
24
|
},
|
|
25
|
-
"version": "5.
|
|
25
|
+
"version": "5.33.0",
|
|
26
26
|
"main": "./cjs/index.cjs",
|
|
27
27
|
"module": "./esm/index.mjs",
|
|
28
28
|
"types": "./esm/index.d.mts",
|