@warlock.js/ai-deepseek 5.31.0 → 5.32.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 +6 -0
- package/esm/config.type.d.mts +5 -7
- package/esm/config.type.d.mts.map +1 -1
- package/esm/known-models.d.mts +3 -4
- package/esm/known-models.d.mts.map +1 -1
- package/esm/sdk.d.mts +3 -5
- package/esm/sdk.d.mts.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ All notable changes to `@warlock.js/ai-deepseek` 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.32.0 - 2026-10-18
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Pin the package development compiler to TypeScript 7.0.2 and use explicit Node types and source roots with supported module resolution.
|
|
12
|
+
|
|
7
13
|
## 5.31.0 - 2026-10-18
|
|
8
14
|
|
|
9
15
|
### 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, ImageModelConfig, ModelConfig } from "@warlock.js/ai";
|
|
3
|
-
|
|
4
3
|
//#region ../../packages/ai-deepseek/src/config.type.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Per-model `response_format` override forwarded to the wrapped OpenAI
|
|
@@ -12,7 +11,7 @@ import { EmbedderConfig, ImageModelConfig, ModelConfig } from "@warlock.js/ai";
|
|
|
12
11
|
* re-injects the schema as a soft prompt hint.
|
|
13
12
|
* - `"text"` — no `response_format` on the wire; relies on the prompt hint.
|
|
14
13
|
*/
|
|
15
|
-
type DeepSeekResponseFormat = "json_schema" | "json_object" | "text";
|
|
14
|
+
export type DeepSeekResponseFormat = "json_schema" | "json_object" | "text";
|
|
16
15
|
/**
|
|
17
16
|
* Configuration for the DeepSeek SDK adapter.
|
|
18
17
|
*
|
|
@@ -49,7 +48,7 @@ type DeepSeekResponseFormat = "json_schema" | "json_object" | "text";
|
|
|
49
48
|
* pricing: { "deepseek-chat": { input: 0.14, output: 0.28, cachedInput: 0.0028 } },
|
|
50
49
|
* });
|
|
51
50
|
*/
|
|
52
|
-
type DeepSeekSDKConfig = Omit<OpenAISDKConfig, "baseURL" | "provider"> & {
|
|
51
|
+
export type DeepSeekSDKConfig = Omit<OpenAISDKConfig, "baseURL" | "provider"> & {
|
|
53
52
|
/**
|
|
54
53
|
* Override the DeepSeek base URL. Defaults to
|
|
55
54
|
* `https://api.deepseek.com` (the OpenAI-compatible endpoint). Set this
|
|
@@ -79,7 +78,7 @@ type DeepSeekSDKConfig = Omit<OpenAISDKConfig, "baseURL" | "provider"> & {
|
|
|
79
78
|
* deepseek.model({ name: "deepseek-reasoner" }); // reasoning auto-true
|
|
80
79
|
* deepseek.model({ name: "deepseek-chat", reasoning: true }); // explicit override
|
|
81
80
|
*/
|
|
82
|
-
type DeepSeekModelConfig = ModelConfig & {
|
|
81
|
+
export type DeepSeekModelConfig = ModelConfig & {
|
|
83
82
|
/**
|
|
84
83
|
* Override the auto-inferred vision capability. When omitted, the
|
|
85
84
|
* adapter infers from the DeepSeek model name (always `false` today —
|
|
@@ -130,7 +129,7 @@ type DeepSeekModelConfig = ModelConfig & {
|
|
|
130
129
|
* `https://api.deepseek.com` endpoint may fail upstream. Prefer a
|
|
131
130
|
* dedicated embeddings provider for RAG.
|
|
132
131
|
*/
|
|
133
|
-
type DeepSeekEmbedderConfig = EmbedderConfig;
|
|
132
|
+
export type DeepSeekEmbedderConfig = EmbedderConfig;
|
|
134
133
|
/**
|
|
135
134
|
* Per-model configuration for `DeepSeekSDK.image()`. Mirrors the neutral
|
|
136
135
|
* {@link ImageModelConfig}.
|
|
@@ -140,7 +139,6 @@ type DeepSeekEmbedderConfig = EmbedderConfig;
|
|
|
140
139
|
* parity; a non-image model id is rejected by the wrapped OpenAI image
|
|
141
140
|
* model at construction exactly as it would be there.
|
|
142
141
|
*/
|
|
143
|
-
type DeepSeekImageConfig = ImageModelConfig;
|
|
142
|
+
export type DeepSeekImageConfig = ImageModelConfig;
|
|
144
143
|
//#endregion
|
|
145
|
-
export { DeepSeekEmbedderConfig, DeepSeekImageConfig, DeepSeekModelConfig, DeepSeekSDKConfig };
|
|
146
144
|
//# sourceMappingURL=config.type.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.type.d.mts","names":[],"sources":["../../../../../../../packages/ai-deepseek/src/config.type.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.type.d.mts","names":[],"sources":["../../../../../../../packages/ai-deepseek/src/config.type.ts"],"mappings":";;;;;;;;;;;;;YAaY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAsCA,oBAAoB,KAAK;;;;;;EAMnC;;;;;EAKA;;;;;;;;;;;;;;;;;;;YAoBU,sBAAsB;;;;;;;EAOhC;;;;;;;;EAQA;;;;;;EAMA;;;;;;;EAOA,iBAAiB;;;;;EAKjB;;;;;EAKA;;;;;;;;;;;;;YAcU,yBAAyB;;;;;;;;;;YAWzB,sBAAsB"}
|
package/esm/known-models.d.mts
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* understands. The list is informational only — `deepseek.model({ name })`
|
|
33
33
|
* accepts any id the upstream serves.
|
|
34
34
|
*/
|
|
35
|
-
declare const DEEPSEEK_CHAT_MODELS: readonly ["deepseek-chat", "deepseek-reasoner", "deepseek-v4-flash", "deepseek-v4-pro"];
|
|
35
|
+
export declare const DEEPSEEK_CHAT_MODELS: readonly ["deepseek-chat", "deepseek-reasoner", "deepseek-v4-flash", "deepseek-v4-pro"];
|
|
36
36
|
/**
|
|
37
37
|
* Infer whether a DeepSeek model id is reasoning-capable based on the
|
|
38
38
|
* known substrings. Unknown ids default to `false` so the adapter never
|
|
@@ -44,7 +44,7 @@ declare const DEEPSEEK_CHAT_MODELS: readonly ["deepseek-chat", "deepseek-reasone
|
|
|
44
44
|
* inferReasoningCapability("deepseek-chat"); // → false
|
|
45
45
|
* inferReasoningCapability("deepseek-v4-flash"); // → false
|
|
46
46
|
*/
|
|
47
|
-
declare function inferReasoningCapability(modelId: string): boolean;
|
|
47
|
+
export declare function inferReasoningCapability(modelId: string): boolean;
|
|
48
48
|
/**
|
|
49
49
|
* Infer whether a DeepSeek model id supports vision based on the known
|
|
50
50
|
* substrings. Today this is always `false` (see
|
|
@@ -56,7 +56,6 @@ declare function inferReasoningCapability(modelId: string): boolean;
|
|
|
56
56
|
* inferVisionCapability("deepseek-chat"); // → false
|
|
57
57
|
* inferVisionCapability("deepseek-reasoner"); // → false
|
|
58
58
|
*/
|
|
59
|
-
declare function inferVisionCapability(modelId: string): boolean;
|
|
59
|
+
export declare function inferVisionCapability(modelId: string): boolean;
|
|
60
60
|
//#endregion
|
|
61
|
-
export { DEEPSEEK_CHAT_MODELS, inferReasoningCapability, inferVisionCapability };
|
|
62
61
|
//# sourceMappingURL=known-models.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"known-models.d.mts","names":[],"sources":["../../../../../../../packages/ai-deepseek/src/known-models.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"known-models.d.mts","names":[],"sources":["../../../../../../../packages/ai-deepseek/src/known-models.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAkCa;;;;;;;;;;;;wBAiCG,yBAAyB;;;;;;;;;;;;wBA+BzB,sBAAsB"}
|
package/esm/sdk.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DeepSeekEmbedderConfig, DeepSeekImageConfig, DeepSeekModelConfig, DeepSeekSDKConfig } from "./config.type.mjs";
|
|
2
2
|
import { EmbedderContract, ImageModelContract, ModelContract, ModelPricing, SDKAdapterContract } from "@warlock.js/ai";
|
|
3
|
-
|
|
4
3
|
//#region ../../packages/ai-deepseek/src/sdk.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Built-in DeepSeek pricing defaults, in USD per 1,000,000 tokens, keyed
|
|
@@ -21,7 +20,7 @@ import { EmbedderContract, ImageModelContract, ModelContract, ModelPricing, SDKA
|
|
|
21
20
|
* A caller-supplied SDK `pricing` registry, or a per-model `pricing`,
|
|
22
21
|
* overrides any entry here.
|
|
23
22
|
*/
|
|
24
|
-
declare const DEEPSEEK_DEFAULT_PRICING: Readonly<Record<string, ModelPricing>>;
|
|
23
|
+
export declare const DEEPSEEK_DEFAULT_PRICING: Readonly<Record<string, ModelPricing>>;
|
|
25
24
|
/**
|
|
26
25
|
* DeepSeek's off-peak rates (half the peak {@link DEEPSEEK_DEFAULT_PRICING}),
|
|
27
26
|
* same source and date. Opt in per SDK:
|
|
@@ -29,7 +28,7 @@ declare const DEEPSEEK_DEFAULT_PRICING: Readonly<Record<string, ModelPricing>>;
|
|
|
29
28
|
* @example
|
|
30
29
|
* new DeepSeekSDK({ apiKey, pricing: DEEPSEEK_OFF_PEAK_PRICING });
|
|
31
30
|
*/
|
|
32
|
-
declare const DEEPSEEK_OFF_PEAK_PRICING: Readonly<Record<string, ModelPricing>>;
|
|
31
|
+
export declare const DEEPSEEK_OFF_PEAK_PRICING: Readonly<Record<string, ModelPricing>>;
|
|
33
32
|
/**
|
|
34
33
|
* DeepSeek-backed implementation of `SDKAdapterContract`.
|
|
35
34
|
*
|
|
@@ -69,7 +68,7 @@ declare const DEEPSEEK_OFF_PEAK_PRICING: Readonly<Record<string, ModelPricing>>;
|
|
|
69
68
|
* const ai = { agent, tool, deepseek: new DeepSeekSDK({ apiKey }) };
|
|
70
69
|
* const myAgent = ai.agent({ model: ai.deepseek.model({ name: "deepseek-reasoner" }) });
|
|
71
70
|
*/
|
|
72
|
-
declare class DeepSeekSDK implements SDKAdapterContract {
|
|
71
|
+
export declare class DeepSeekSDK implements SDKAdapterContract {
|
|
73
72
|
/** The wrapped OpenAI-compatible client, pinned to DeepSeek. */
|
|
74
73
|
private readonly openai;
|
|
75
74
|
private readonly provider;
|
|
@@ -118,5 +117,4 @@ declare class DeepSeekSDK implements SDKAdapterContract {
|
|
|
118
117
|
image(config: DeepSeekImageConfig): ImageModelContract;
|
|
119
118
|
}
|
|
120
119
|
//#endregion
|
|
121
|
-
export { DEEPSEEK_DEFAULT_PRICING, DEEPSEEK_OFF_PEAK_PRICING, DeepSeekSDK };
|
|
122
120
|
//# 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-deepseek/src/sdk.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"sdk.d.mts","names":[],"sources":["../../../../../../../packages/ai-deepseek/src/sdk.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;qBA4Ca,0BAA0B,SAAS,eAAe;;;;;;;;qBAalD,2BAA2B,SAAS,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6CnD,uBAAuB;;mBAEjB;mBACA;mBACA;EAEjB,YAAmB,QAAQ;;;;;;;;;;;;;;;EA+BpB,MAAM,QAAQ,sBAAsB;;;;;;EAgB9B,MAAM,cAAc,iBAAiB;;;;;;;;;;;EAc3C,SAAS,QAAQ,yBAAyB;;;;;;;;;EAY1C,MAAM,QAAQ,sBAAsB"}
|
package/package.json
CHANGED
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"directory": "packages/ai-deepseek"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@warlock.js/ai-openai": "5.
|
|
18
|
-
"@warlock.js/logger": "5.
|
|
17
|
+
"@warlock.js/ai-openai": "5.32.0",
|
|
18
|
+
"@warlock.js/logger": "5.32.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
|
-
"@warlock.js/ai": "5.
|
|
21
|
+
"@warlock.js/ai": "5.32.0"
|
|
22
22
|
},
|
|
23
|
-
"version": "5.
|
|
23
|
+
"version": "5.32.0",
|
|
24
24
|
"main": "./cjs/index.cjs",
|
|
25
25
|
"module": "./esm/index.mjs",
|
|
26
26
|
"types": "./esm/index.d.mts",
|