@celljs/ai-deepseek 3.5.2 → 3.5.3
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/lib/common/api/api-protocol.d.ts +2 -2
- package/lib/common/api/api-protocol.d.ts.map +1 -1
- package/lib/common/api/api-protocol.js +2 -2
- package/lib/common/api/api-protocol.js.map +1 -1
- package/lib/common/api/deepseek-api.d.ts +4 -4
- package/lib/common/api/deepseek-api.d.ts.map +1 -1
- package/lib/common/api/deepseek-api.js +2 -2
- package/lib/common/api/deepseek-api.js.map +1 -1
- package/package.json +6 -6
- package/src/common/api/api-protocol.ts +2 -2
- package/src/common/api/deepseek-api.ts +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OpenAIAPIOptions } from '@celljs/ai-openai';
|
|
2
|
-
export declare const
|
|
3
|
-
export interface
|
|
2
|
+
export declare const DeepSeekAPIOptions: unique symbol;
|
|
3
|
+
export interface DeepSeekAPIOptions extends OpenAIAPIOptions {
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=api-protocol.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-protocol.d.ts","sourceRoot":"","sources":["../../../src/common/api/api-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"api-protocol.d.ts","sourceRoot":"","sources":["../../../src/common/api/api-protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,kBAAkB,eAA+B,CAAC;AAE/D,MAAM,WAAW,kBAAmB,SAAQ,gBAAgB;CAC3D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.DeepSeekAPIOptions = void 0;
|
|
4
|
+
exports.DeepSeekAPIOptions = Symbol('DeepSeekAPIOptions');
|
|
5
5
|
//# sourceMappingURL=api-protocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-protocol.js","sourceRoot":"","sources":["../../../src/common/api/api-protocol.ts"],"names":[],"mappings":";;;AAEa,QAAA,
|
|
1
|
+
{"version":3,"file":"api-protocol.js","sourceRoot":"","sources":["../../../src/common/api/api-protocol.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DeepSeekAPIOptions } from './api-protocol';
|
|
2
2
|
import { OpenAIAPIImpl } from '@celljs/ai-openai';
|
|
3
3
|
export declare class DeepSeekAPI extends OpenAIAPIImpl {
|
|
4
|
-
protected readonly apiOptions:
|
|
5
|
-
protected readonly apiOptions2:
|
|
6
|
-
protected finalApiOptions: Required<
|
|
4
|
+
protected readonly apiOptions: DeepSeekAPIOptions;
|
|
5
|
+
protected readonly apiOptions2: DeepSeekAPIOptions;
|
|
6
|
+
protected finalApiOptions: Required<DeepSeekAPIOptions>;
|
|
7
7
|
protected init(): void;
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=deepseek-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepseek-api.d.ts","sourceRoot":"","sources":["../../../src/common/api/deepseek-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"deepseek-api.d.ts","sourceRoot":"","sources":["../../../src/common/api/deepseek-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBACa,WAAY,SAAQ,aAAa;IAE1C,mBAC4B,UAAU,EAAE,kBAAkB,CAAC;IAE3D,mBAE4B,WAAW,EAAE,kBAAkB,CAAC;IAE5D,UAAmB,eAAe,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;cAG9C,IAAI;CAW1B"}
|
|
@@ -10,7 +10,7 @@ let DeepSeekAPI = DeepSeekAPI_1 = class DeepSeekAPI extends ai_openai_1.OpenAIAP
|
|
|
10
10
|
init() {
|
|
11
11
|
super.init();
|
|
12
12
|
this.finalApiOptions = {
|
|
13
|
-
baseUrl: 'https://api.deepseek.
|
|
13
|
+
baseUrl: 'https://api.deepseek.com',
|
|
14
14
|
apiKey: '',
|
|
15
15
|
completionsPath: '/chat/completions',
|
|
16
16
|
embeddingsPath: '/embeddings',
|
|
@@ -24,7 +24,7 @@ tslib_1.__decorate([
|
|
|
24
24
|
tslib_1.__metadata("design:type", Object)
|
|
25
25
|
], DeepSeekAPI.prototype, "apiOptions", void 0);
|
|
26
26
|
tslib_1.__decorate([
|
|
27
|
-
(0, core_1.Autowired)(api_protocol_1.
|
|
27
|
+
(0, core_1.Autowired)(api_protocol_1.DeepSeekAPIOptions),
|
|
28
28
|
(0, core_1.Optional)(),
|
|
29
29
|
tslib_1.__metadata("design:type", Object)
|
|
30
30
|
], DeepSeekAPI.prototype, "apiOptions2", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deepseek-api.js","sourceRoot":"","sources":["../../../src/common/api/deepseek-api.ts"],"names":[],"mappings":";;;;;AAAA,uCAAoF;AACpF,
|
|
1
|
+
{"version":3,"file":"deepseek-api.js","sourceRoot":"","sources":["../../../src/common/api/deepseek-api.ts"],"names":[],"mappings":";;;;;AAAA,uCAAoF;AACpF,iDAAoD;AACpD,iDAAkD;AAG3C,IAAM,WAAW,mBAAjB,MAAM,WAAY,SAAQ,yBAAa;IAYvB,IAAI;QACnB,KAAK,CAAC,IAAI,EAAE,CAAC;QACb,IAAI,CAAC,eAAe,GAAG;YACnB,OAAO,EAAE,0BAA0B;YACnC,MAAM,EAAE,EAAE;YACV,eAAe,EAAE,mBAAmB;YACpC,cAAc,EAAE,aAAa;YAC7B,GAAG,IAAI,CAAC,UAAU;YAClB,GAAG,IAAI,CAAC,WAAW;SACtB,CAAC;IACN,CAAC;CACJ,CAAA;AArBG;IAAC,IAAA,YAAK,EAAC,sBAAsB,CAAC;;+CAC6B;AAE3D;IAAC,IAAA,gBAAS,EAAC,iCAAkB,CAAC;IAC7B,IAAA,eAAQ,GAAE;;gDACiD;AAI5D;IAAC,IAAA,oBAAa,GAAE;;;;uCAWf;AAtBQ,WAAW;IADvB,IAAA,gBAAS,EAAC,aAAW,CAAC;GACV,WAAW,CAuBvB;AAvBY,kCAAW"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ai-deepseek",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"description": "DeepSeek models support",
|
|
5
5
|
"main": "lib/common/index.js",
|
|
6
6
|
"typings": "lib/common/index.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@celljs/ai-core": "3.5.
|
|
9
|
-
"@celljs/ai-openai": "3.5.
|
|
10
|
-
"@celljs/core": "3.5.
|
|
8
|
+
"@celljs/ai-core": "3.5.3",
|
|
9
|
+
"@celljs/ai-openai": "3.5.3",
|
|
10
|
+
"@celljs/core": "3.5.3",
|
|
11
11
|
"tslib": "^2.8.0"
|
|
12
12
|
},
|
|
13
13
|
"publishConfig": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"test": "cell-component test:js"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@celljs/component": "3.5.
|
|
41
|
+
"@celljs/component": "3.5.3"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "76dcaf5e75a306b8f9ba6f01d38d54fdf9000218"
|
|
44
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OpenAIAPIOptions } from '@celljs/ai-openai';
|
|
2
2
|
|
|
3
|
-
export const
|
|
3
|
+
export const DeepSeekAPIOptions = Symbol('DeepSeekAPIOptions');
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface DeepSeekAPIOptions extends OpenAIAPIOptions {
|
|
6
6
|
}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { Autowired, Component, Optional, PostConstruct, Value } from '@celljs/core';
|
|
2
|
-
import {
|
|
2
|
+
import { DeepSeekAPIOptions } from './api-protocol';
|
|
3
3
|
import { OpenAIAPIImpl } from '@celljs/ai-openai';
|
|
4
4
|
|
|
5
5
|
@Component(DeepSeekAPI)
|
|
6
6
|
export class DeepSeekAPI extends OpenAIAPIImpl {
|
|
7
7
|
|
|
8
8
|
@Value('cell.ai.deepseek.api')
|
|
9
|
-
protected override readonly apiOptions:
|
|
9
|
+
protected override readonly apiOptions: DeepSeekAPIOptions;
|
|
10
10
|
|
|
11
|
-
@Autowired(
|
|
11
|
+
@Autowired(DeepSeekAPIOptions)
|
|
12
12
|
@Optional()
|
|
13
|
-
protected override readonly apiOptions2:
|
|
13
|
+
protected override readonly apiOptions2: DeepSeekAPIOptions;
|
|
14
14
|
|
|
15
|
-
protected override finalApiOptions: Required<
|
|
15
|
+
protected override finalApiOptions: Required<DeepSeekAPIOptions>;
|
|
16
16
|
|
|
17
17
|
@PostConstruct()
|
|
18
18
|
protected override init() {
|
|
19
19
|
super.init();
|
|
20
20
|
this.finalApiOptions = {
|
|
21
|
-
baseUrl: 'https://api.deepseek.
|
|
21
|
+
baseUrl: 'https://api.deepseek.com',
|
|
22
22
|
apiKey: '',
|
|
23
23
|
completionsPath: '/chat/completions',
|
|
24
24
|
embeddingsPath: '/embeddings',
|