@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 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
@@ -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":";;;;;;AAsCA;;;;;;;;;;;;;;;;;AAmBuC;AAoBvC;;;;;;;;;AAyBkB;AAiBlB;;;;AAA+C;KAjFnC,aAAA,GAAgB,IAAA,CAAK,eAAA;;;;;;EAM/B,OAAA;;;;;;EAMA,QAAA;;;;;;;EAOA,OAAA,GAAU,MAAA,SAAe,YAAA;AAAA;;;;;;;;;;;;;;;;;;KAoBf,eAAA,GAAkB,WAAW;;;;;;;;EAQvC,MAAA;;;;;;;;;EASA,SAAA;;;;;;;;EAQA,gBAAA;AAAA;;;;;;;;;;;;;;;KAiBU,kBAAA,GAAqB,cAAc"}
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"}
@@ -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":";;AASA;;;;AAA0B;AAQ1B;;;cARa,aAAA;AAQa;AAkE1B;;;;AAAqD;AAlE3B,cAAb,aAAA;;;;AAmF2C;AAoBxD;;;;AAMU;;;;;iBA3CM,qBAAA,CAAsB,OAAe;;;;;;;;;;;;iBAiBrC,wBAAA,CAAyB,OAAe;;;;;;;;;;;;;;;cAoB3C,iBAAA"}
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":";;;;;;AA4DA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoF+D;AAgC/D;;;;;;;;;;cApHa,OAAA,YAAmB,kBAAA;EAoHuC;AAAA;;;;;EAAA,iBA7GpD,MAAA;EAAA,iBACA,QAAA;EAAA,iBACA,OAAA;cAEE,MAAA,EAAQ,aAAA;;;;;;;;;;;;;;;;;;EAqCpB,KAAA,CAAM,MAAA,EAAQ,eAAA,GAAkB,aAAA;;;;;;;EAsB1B,KAAA,CAAM,IAAA,UAAc,KAAA,YAAiB,OAAA;;;;;;;;;;;EAc3C,QAAA,CAAS,MAAA,EAAQ,kBAAA,GAAqB,gBAAA;AAAA;;;;;;;;;;;cAgClC,oBAAA,EAAsB,QAAA,CAAS,MAAA,SAAe,YAAA"}
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.31.0"
19
+ "@warlock.js/ai": "5.33.0"
20
20
  },
21
21
  "dependencies": {
22
- "@warlock.js/ai-openai": "5.31.0",
23
- "@warlock.js/logger": "5.31.0"
22
+ "@warlock.js/ai-openai": "5.33.0",
23
+ "@warlock.js/logger": "5.33.0"
24
24
  },
25
- "version": "5.31.0",
25
+ "version": "5.33.0",
26
26
  "main": "./cjs/index.cjs",
27
27
  "module": "./esm/index.mjs",
28
28
  "types": "./esm/index.d.mts",