@celljs/ai-deepseek 3.5.2 → 3.5.4

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.
@@ -1,5 +1,5 @@
1
1
  import { OpenAIAPIOptions } from '@celljs/ai-openai';
2
- export declare const DeepSeekPIOptions: unique symbol;
3
- export interface DeepSeekPIOptions extends OpenAIAPIOptions {
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,iBAAiB,eAA8B,CAAC;AAE7D,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAC1D"}
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.DeepSeekPIOptions = void 0;
4
- exports.DeepSeekPIOptions = Symbol('DeepSeekPIOptions');
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,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,CAAC,CAAC"}
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 { DeepSeekPIOptions } from './api-protocol';
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: DeepSeekPIOptions;
5
- protected readonly apiOptions2: DeepSeekPIOptions;
6
- protected finalApiOptions: Required<DeepSeekPIOptions>;
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,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,qBACa,WAAY,SAAQ,aAAa;IAE1C,mBAC4B,UAAU,EAAE,iBAAiB,CAAC;IAE1D,mBAE4B,WAAW,EAAE,iBAAiB,CAAC;IAE3D,UAAmB,eAAe,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;cAG7C,IAAI;CAW1B"}
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.ai',
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.DeepSeekPIOptions),
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,iDAAmD;AACnD,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,yBAAyB;YAClC,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;;+CAC4B;AAE1D;IAAC,IAAA,gBAAS,EAAC,gCAAiB,CAAC;IAC5B,IAAA,eAAQ,GAAE;;gDACgD;AAI3D;IAAC,IAAA,oBAAa,GAAE;;;;uCAWf;AAtBQ,WAAW;IADvB,IAAA,gBAAS,EAAC,aAAW,CAAC;GACV,WAAW,CAuBvB;AAvBY,kCAAW"}
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.2",
3
+ "version": "3.5.4",
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.2",
9
- "@celljs/ai-openai": "3.5.2",
10
- "@celljs/core": "3.5.2",
8
+ "@celljs/ai-core": "3.5.4",
9
+ "@celljs/ai-openai": "3.5.4",
10
+ "@celljs/core": "3.5.4",
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.2"
41
+ "@celljs/component": "3.5.4"
42
42
  },
43
- "gitHead": "4dc9306d54b4ff068f18e0183426946a4afe2500"
43
+ "gitHead": "f03fe0d5de730015531fe2741a9a4da7a846b4e7"
44
44
  }
@@ -1,6 +1,6 @@
1
1
  import { OpenAIAPIOptions } from '@celljs/ai-openai';
2
2
 
3
- export const DeepSeekPIOptions = Symbol('DeepSeekPIOptions');
3
+ export const DeepSeekAPIOptions = Symbol('DeepSeekAPIOptions');
4
4
 
5
- export interface DeepSeekPIOptions extends OpenAIAPIOptions {
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 { DeepSeekPIOptions } from './api-protocol';
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: DeepSeekPIOptions;
9
+ protected override readonly apiOptions: DeepSeekAPIOptions;
10
10
 
11
- @Autowired(DeepSeekPIOptions)
11
+ @Autowired(DeepSeekAPIOptions)
12
12
  @Optional()
13
- protected override readonly apiOptions2: DeepSeekPIOptions;
13
+ protected override readonly apiOptions2: DeepSeekAPIOptions;
14
14
 
15
- protected override finalApiOptions: Required<DeepSeekPIOptions>;
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.ai',
21
+ baseUrl: 'https://api.deepseek.com',
22
22
  apiKey: '',
23
23
  completionsPath: '/chat/completions',
24
24
  embeddingsPath: '/embeddings',