@celljs/ai-deepseek 3.8.0 → 4.0.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/esm/common/api/api-protocol.d.ts +4 -0
- package/esm/common/api/api-protocol.js +2 -0
- package/esm/common/api/api-protocol.js.map +1 -0
- package/esm/common/api/deepseek-api.d.ts +8 -0
- package/esm/common/api/deepseek-api.js +45 -0
- package/esm/common/api/deepseek-api.js.map +1 -0
- package/esm/common/api/deepseek-model.d.ts +10 -0
- package/esm/common/api/deepseek-model.js +12 -0
- package/esm/common/api/deepseek-model.js.map +1 -0
- package/esm/common/api/index.d.ts +3 -0
- package/esm/common/api/index.js +4 -0
- package/esm/common/api/index.js.map +1 -0
- package/esm/common/index.d.ts +2 -0
- package/esm/common/index.js +3 -0
- package/esm/common/index.js.map +1 -0
- package/esm/common/model/deepseek-chat-model.d.ts +17 -0
- package/esm/common/model/deepseek-chat-model.js +33 -0
- package/esm/common/model/deepseek-chat-model.js.map +1 -0
- package/esm/common/model/deepseek-chat-options.d.ts +6 -0
- package/esm/common/model/deepseek-chat-options.js +18 -0
- package/esm/common/model/deepseek-chat-options.js.map +1 -0
- package/esm/common/model/deepseek-embedding-model.d.ts +10 -0
- package/esm/common/model/deepseek-embedding-model.js +29 -0
- package/esm/common/model/deepseek-embedding-model.js.map +1 -0
- package/esm/common/model/deepseek-embedding-options.d.ts +6 -0
- package/esm/common/model/deepseek-embedding-options.js +18 -0
- package/esm/common/model/deepseek-embedding-options.js.map +1 -0
- package/esm/common/model/index.d.ts +4 -0
- package/esm/common/model/index.js +5 -0
- package/esm/common/model/index.js.map +1 -0
- package/esm/common/module.d.ts +3 -0
- package/esm/common/module.js +4 -0
- package/esm/common/module.js.map +1 -0
- package/esm/package.json +3 -0
- package/package.json +45 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api-protocol.js","sourceRoot":"","sources":["../../../src/common/api/api-protocol.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DeepSeekAPIOptions } from './api-protocol.js';
|
|
2
|
+
import { OpenAIAPIImpl } from '@celljs/ai-openai';
|
|
3
|
+
export declare class DeepSeekAPI extends OpenAIAPIImpl {
|
|
4
|
+
protected readonly apiOptions: DeepSeekAPIOptions;
|
|
5
|
+
protected readonly apiOptions2: DeepSeekAPIOptions;
|
|
6
|
+
protected finalApiOptions: Required<DeepSeekAPIOptions>;
|
|
7
|
+
protected init(): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Autowired, Component, Optional, PostConstruct, Value } from '@celljs/core';
|
|
11
|
+
import { DeepSeekAPIOptions } from './api-protocol.js';
|
|
12
|
+
import { OpenAIAPIImpl } from '@celljs/ai-openai';
|
|
13
|
+
let DeepSeekAPI = class DeepSeekAPI extends OpenAIAPIImpl {
|
|
14
|
+
init() {
|
|
15
|
+
super.init();
|
|
16
|
+
this.finalApiOptions = {
|
|
17
|
+
baseUrl: 'https://api.deepseek.com',
|
|
18
|
+
apiKey: '',
|
|
19
|
+
completionsPath: '/chat/completions',
|
|
20
|
+
embeddingsPath: '/embeddings',
|
|
21
|
+
...this.apiOptions,
|
|
22
|
+
...this.apiOptions2
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
__decorate([
|
|
27
|
+
Value('cell.ai.deepseek.api'),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], DeepSeekAPI.prototype, "apiOptions", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Autowired(DeepSeekAPIOptions),
|
|
32
|
+
Optional(),
|
|
33
|
+
__metadata("design:type", Object)
|
|
34
|
+
], DeepSeekAPI.prototype, "apiOptions2", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
PostConstruct(),
|
|
37
|
+
__metadata("design:type", Function),
|
|
38
|
+
__metadata("design:paramtypes", []),
|
|
39
|
+
__metadata("design:returntype", void 0)
|
|
40
|
+
], DeepSeekAPI.prototype, "init", null);
|
|
41
|
+
DeepSeekAPI = __decorate([
|
|
42
|
+
Component(DeepSeekAPI)
|
|
43
|
+
], DeepSeekAPI);
|
|
44
|
+
export { DeepSeekAPI };
|
|
45
|
+
//# sourceMappingURL=deepseek-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepseek-api.js","sourceRoot":"","sources":["../../../src/common/api/deepseek-api.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAG3C,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,aAAa;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;AApB+B;IAD3B,KAAK,CAAC,sBAAsB,CAAC;;+CAC6B;AAI/B;IAF3B,SAAS,CAAC,kBAAkB,CAAC;IAC7B,QAAQ,EAAE;;gDACiD;AAKzC;IADlB,aAAa,EAAE;;;;uCAWf;AAtBQ,WAAW;IADvB,SAAS,CAAC,WAAW,CAAC;GACV,WAAW,CAuBvB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DeepSeek Chat Completion Models:
|
|
3
|
+
*
|
|
4
|
+
* - DeepSeek Chat: Chat completion model
|
|
5
|
+
* - DeepSeek Reasoner: Reasoning model
|
|
6
|
+
*/
|
|
7
|
+
export var DeepSeekModel;
|
|
8
|
+
(function (DeepSeekModel) {
|
|
9
|
+
DeepSeekModel["DEEPSEEK_CHAT"] = "deepseek-chat";
|
|
10
|
+
DeepSeekModel["DEEPSEEK_REASONER"] = "deepseek-reasoner";
|
|
11
|
+
})(DeepSeekModel || (DeepSeekModel = {}));
|
|
12
|
+
//# sourceMappingURL=deepseek-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepseek-model.js","sourceRoot":"","sources":["../../../src/common/api/deepseek-model.ts"],"names":[],"mappings":"AACA;;;;;GAKG;AACH,MAAM,CAAN,IAAY,aAIX;AAJD,WAAY,aAAa;IAErB,gDAA+B,CAAA;IAC/B,wDAAuC,CAAA;AAC3C,CAAC,EAJW,aAAa,KAAb,aAAa,QAIxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepSeekAPI } from '../api/index.js';
|
|
2
|
+
import { OpenAIChatModel } from '@celljs/ai-openai';
|
|
3
|
+
import { DeepSeekChatOptions } from './deepseek-chat-options.js';
|
|
4
|
+
/**
|
|
5
|
+
* {@link ChatModel} implementation for {@literal DeepSeek} AI.
|
|
6
|
+
* backed by {@link DeepSeekAPI}.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DeepSeekChatModel extends OpenAIChatModel {
|
|
9
|
+
/**
|
|
10
|
+
* The default options used for the chat completion requests.
|
|
11
|
+
*/
|
|
12
|
+
protected readonly defaultOptions: DeepSeekChatOptions;
|
|
13
|
+
/**
|
|
14
|
+
* Low-level access to the OpenAI API.
|
|
15
|
+
*/
|
|
16
|
+
protected readonly chatApi: DeepSeekAPI;
|
|
17
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { ChatModel } from '@celljs/ai-core';
|
|
11
|
+
import { DeepSeekAPI } from '../api/index.js';
|
|
12
|
+
import { Autowired, Component } from '@celljs/core';
|
|
13
|
+
import { OpenAIChatModel } from '@celljs/ai-openai';
|
|
14
|
+
import { DeepSeekChatOptions } from './deepseek-chat-options.js';
|
|
15
|
+
/**
|
|
16
|
+
* {@link ChatModel} implementation for {@literal DeepSeek} AI.
|
|
17
|
+
* backed by {@link DeepSeekAPI}.
|
|
18
|
+
*/
|
|
19
|
+
let DeepSeekChatModel = class DeepSeekChatModel extends OpenAIChatModel {
|
|
20
|
+
};
|
|
21
|
+
__decorate([
|
|
22
|
+
Autowired(DeepSeekChatOptions),
|
|
23
|
+
__metadata("design:type", DeepSeekChatOptions)
|
|
24
|
+
], DeepSeekChatModel.prototype, "defaultOptions", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
Autowired(DeepSeekAPI),
|
|
27
|
+
__metadata("design:type", DeepSeekAPI)
|
|
28
|
+
], DeepSeekChatModel.prototype, "chatApi", void 0);
|
|
29
|
+
DeepSeekChatModel = __decorate([
|
|
30
|
+
Component(ChatModel)
|
|
31
|
+
], DeepSeekChatModel);
|
|
32
|
+
export { DeepSeekChatModel };
|
|
33
|
+
//# sourceMappingURL=deepseek-chat-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepseek-chat-model.js","sourceRoot":"","sources":["../../../src/common/model/deepseek-chat-model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAE9D;;;GAGG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,eAAe;CAarD,CAAA;AAP+B;IAD3B,SAAS,CAAC,mBAAmB,CAAC;8BACa,mBAAmB;yDAAC;AAMpC;IAD3B,SAAS,CAAC,WAAW,CAAC;8BACc,WAAW;kDAAC;AAZxC,iBAAiB;IAD7B,SAAS,CAAC,SAAS,CAAC;GACR,iBAAiB,CAa7B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Constant } from '@celljs/core';
|
|
8
|
+
import { OpenAIChatOptions } from '@celljs/ai-openai';
|
|
9
|
+
/**
|
|
10
|
+
* Options for the DeepSeek Chat API.
|
|
11
|
+
*/
|
|
12
|
+
let DeepSeekChatOptions = class DeepSeekChatOptions extends OpenAIChatOptions {
|
|
13
|
+
};
|
|
14
|
+
DeepSeekChatOptions = __decorate([
|
|
15
|
+
Constant(DeepSeekChatOptions, new DeepSeekChatOptions())
|
|
16
|
+
], DeepSeekChatOptions);
|
|
17
|
+
export { DeepSeekChatOptions };
|
|
18
|
+
//# sourceMappingURL=deepseek-chat-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepseek-chat-options.js","sourceRoot":"","sources":["../../../src/common/model/deepseek-chat-options.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AAEI,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,iBAAiB;CAEzD,CAAA;AAFY,mBAAmB;IAD/B,QAAQ,CAAC,mBAAmB,EAAE,IAAI,mBAAmB,EAAE,CAAC;GAC5C,mBAAmB,CAE/B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DeepSeekAPI } from '../api/index.js';
|
|
2
|
+
import { DeepSeekEmbeddingOptions } from './deepseek-embedding-options.js';
|
|
3
|
+
import { OpenAIEmbeddingModel } from '@celljs/ai-openai';
|
|
4
|
+
export declare class DeepSeekEmbeddingModel extends OpenAIEmbeddingModel {
|
|
5
|
+
protected readonly defaultOptions: DeepSeekEmbeddingOptions;
|
|
6
|
+
/**
|
|
7
|
+
* Low-level access to the DeepSeek API.
|
|
8
|
+
*/
|
|
9
|
+
protected readonly chatApi: DeepSeekAPI;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { EmbeddingModel } from '@celljs/ai-core';
|
|
11
|
+
import { DeepSeekAPI } from '../api/index.js';
|
|
12
|
+
import { Autowired, Component } from '@celljs/core';
|
|
13
|
+
import { DeepSeekEmbeddingOptions } from './deepseek-embedding-options.js';
|
|
14
|
+
import { OpenAIEmbeddingModel } from '@celljs/ai-openai';
|
|
15
|
+
let DeepSeekEmbeddingModel = class DeepSeekEmbeddingModel extends OpenAIEmbeddingModel {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
Autowired(DeepSeekEmbeddingOptions),
|
|
19
|
+
__metadata("design:type", DeepSeekEmbeddingOptions)
|
|
20
|
+
], DeepSeekEmbeddingModel.prototype, "defaultOptions", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
Autowired(DeepSeekAPI),
|
|
23
|
+
__metadata("design:type", DeepSeekAPI)
|
|
24
|
+
], DeepSeekEmbeddingModel.prototype, "chatApi", void 0);
|
|
25
|
+
DeepSeekEmbeddingModel = __decorate([
|
|
26
|
+
Component(EmbeddingModel)
|
|
27
|
+
], DeepSeekEmbeddingModel);
|
|
28
|
+
export { DeepSeekEmbeddingModel };
|
|
29
|
+
//# sourceMappingURL=deepseek-embedding-model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepseek-embedding-model.js","sourceRoot":"","sources":["../../../src/common/model/deepseek-embedding-model.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAGlD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,oBAAoB;CAW/D,CAAA;AAR+B;IAD3B,SAAS,CAAC,wBAAwB,CAAC;8BACQ,wBAAwB;8DAAC;AAMzC;IAD3B,SAAS,CAAC,WAAW,CAAC;8BACc,WAAW;uDAAC;AATxC,sBAAsB;IADlC,SAAS,CAAC,cAAc,CAAC;GACb,sBAAsB,CAWlC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { Constant } from '@celljs/core';
|
|
8
|
+
import { OpenAIEmbeddingOptions } from '@celljs/ai-openai';
|
|
9
|
+
/**
|
|
10
|
+
* DeepSeek Embedding Options.
|
|
11
|
+
*/
|
|
12
|
+
let DeepSeekEmbeddingOptions = class DeepSeekEmbeddingOptions extends OpenAIEmbeddingOptions {
|
|
13
|
+
};
|
|
14
|
+
DeepSeekEmbeddingOptions = __decorate([
|
|
15
|
+
Constant(DeepSeekEmbeddingOptions, new DeepSeekEmbeddingOptions())
|
|
16
|
+
], DeepSeekEmbeddingOptions);
|
|
17
|
+
export { DeepSeekEmbeddingOptions };
|
|
18
|
+
//# sourceMappingURL=deepseek-embedding-options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deepseek-embedding-options.js","sourceRoot":"","sources":["../../../src/common/model/deepseek-embedding-options.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE3D;;GAEG;AAEI,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,sBAAsB;CACnE,CAAA;AADY,wBAAwB;IADpC,QAAQ,CAAC,wBAAwB,EAAE,IAAI,wBAAwB,EAAE,CAAC;GACtD,wBAAwB,CACpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../src/common/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,SAAS,CAAC;AAEjB,eAAe,QAAQ,EAAE,CAAC"}
|
package/esm/package.json
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ai-deepseek",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "DeepSeek models support",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cell-component"
|
|
@@ -18,22 +18,61 @@
|
|
|
18
18
|
"typings": "lib/common/index.d.ts",
|
|
19
19
|
"files": [
|
|
20
20
|
"lib",
|
|
21
|
+
"esm",
|
|
21
22
|
"src",
|
|
22
23
|
"cell.yml"
|
|
23
24
|
],
|
|
24
25
|
"scripts": {
|
|
25
|
-
"build": "tsc -b",
|
|
26
|
-
"clean": "rm -rf lib *.tsbuildinfo",
|
|
26
|
+
"build": "tsc -b && bun ../../scripts/build-esm.ts",
|
|
27
|
+
"clean": "rm -rf lib esm *.tsbuildinfo",
|
|
27
28
|
"test": "bun test --preload reflect-metadata ./lib",
|
|
28
29
|
"watch": "tsc -b -w --preserveWatchOutput"
|
|
29
30
|
},
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"@celljs/ai-core": "
|
|
32
|
-
"@celljs/ai-openai": "
|
|
33
|
-
"@celljs/core": "
|
|
32
|
+
"@celljs/ai-core": "4.0.0",
|
|
33
|
+
"@celljs/ai-openai": "4.0.0",
|
|
34
|
+
"@celljs/core": "4.0.0",
|
|
34
35
|
"tslib": "^2.8.0"
|
|
35
36
|
},
|
|
36
37
|
"publishConfig": {
|
|
37
38
|
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"import": "./esm/common/index.js",
|
|
43
|
+
"default": "./lib/common/index.js"
|
|
44
|
+
},
|
|
45
|
+
"./package.json": "./package.json",
|
|
46
|
+
"./lib/common": {
|
|
47
|
+
"import": "./esm/common/index.js",
|
|
48
|
+
"default": "./lib/common/index.js"
|
|
49
|
+
},
|
|
50
|
+
"./lib/common/api": {
|
|
51
|
+
"import": "./esm/common/api/index.js",
|
|
52
|
+
"default": "./lib/common/api/index.js"
|
|
53
|
+
},
|
|
54
|
+
"./lib/common/model": {
|
|
55
|
+
"import": "./esm/common/model/index.js",
|
|
56
|
+
"default": "./lib/common/model/index.js"
|
|
57
|
+
},
|
|
58
|
+
"./lib/*.js": {
|
|
59
|
+
"import": "./esm/*.js",
|
|
60
|
+
"default": "./lib/*.js"
|
|
61
|
+
},
|
|
62
|
+
"./lib/*": {
|
|
63
|
+
"import": "./esm/*.js",
|
|
64
|
+
"default": "./lib/*.js"
|
|
65
|
+
},
|
|
66
|
+
"./*": "./*"
|
|
67
|
+
},
|
|
68
|
+
"cell": {
|
|
69
|
+
"modules": {
|
|
70
|
+
"frontend": [
|
|
71
|
+
"lib/common/module"
|
|
72
|
+
],
|
|
73
|
+
"backend": [
|
|
74
|
+
"lib/common/module"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
38
77
|
}
|
|
39
78
|
}
|