@aigne/deepseek 0.7.63-beta → 1.74.0-beta

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,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DeepSeekChatModel = void 0;
4
- const openai_1 = require("@aigne/openai");
5
- const DEEPSEEK_DEFAULT_CHAT_MODEL = "deepseek-chat";
6
- const DEEPSEEK_BASE_URL = "https://api.deepseek.com";
7
- /**
8
- * Implementation of the ChatModel interface for DeepSeek's API
9
- *
10
- * This model uses OpenAI-compatible API format to interact with DeepSeek's models,
11
- * but with specific configuration and capabilities for DeepSeek.
12
- *
13
- * Default model: 'deepseek-chat'
14
- *
15
- * @example
16
- * Here's how to create and use a DeepSeek chat model:
17
- * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model}
18
- *
19
- * @example
20
- * Here's an example with streaming response:
21
- * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model-streaming}
22
- */
23
- class DeepSeekChatModel extends openai_1.OpenAIChatModel {
24
- constructor(options) {
25
- super({
26
- ...options,
27
- model: options?.model || DEEPSEEK_DEFAULT_CHAT_MODEL,
28
- baseURL: options?.baseURL || DEEPSEEK_BASE_URL,
29
- });
30
- }
31
- apiKeyEnvName = "DEEPSEEK_API_KEY";
32
- supportsNativeStructuredOutputs = false;
33
- supportsToolsEmptyParameters = false;
34
- }
35
- exports.DeepSeekChatModel = DeepSeekChatModel;
@@ -1 +0,0 @@
1
- export * from "./deepseek-chat-model.js";
package/lib/cjs/index.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./deepseek-chat-model.js"), exports);
@@ -1,3 +0,0 @@
1
- {
2
- "type": "commonjs"
3
- }
@@ -1 +0,0 @@
1
- export * from "./deepseek-chat-model.js";
@@ -1,23 +0,0 @@
1
- import { OpenAIChatModel, type OpenAIChatModelOptions } from "@aigne/openai";
2
- /**
3
- * Implementation of the ChatModel interface for DeepSeek's API
4
- *
5
- * This model uses OpenAI-compatible API format to interact with DeepSeek's models,
6
- * but with specific configuration and capabilities for DeepSeek.
7
- *
8
- * Default model: 'deepseek-chat'
9
- *
10
- * @example
11
- * Here's how to create and use a DeepSeek chat model:
12
- * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model}
13
- *
14
- * @example
15
- * Here's an example with streaming response:
16
- * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model-streaming}
17
- */
18
- export declare class DeepSeekChatModel extends OpenAIChatModel {
19
- constructor(options?: OpenAIChatModelOptions);
20
- protected apiKeyEnvName: string;
21
- protected supportsNativeStructuredOutputs: boolean;
22
- protected supportsToolsEmptyParameters: boolean;
23
- }
@@ -1,31 +0,0 @@
1
- import { OpenAIChatModel } from "@aigne/openai";
2
- const DEEPSEEK_DEFAULT_CHAT_MODEL = "deepseek-chat";
3
- const DEEPSEEK_BASE_URL = "https://api.deepseek.com";
4
- /**
5
- * Implementation of the ChatModel interface for DeepSeek's API
6
- *
7
- * This model uses OpenAI-compatible API format to interact with DeepSeek's models,
8
- * but with specific configuration and capabilities for DeepSeek.
9
- *
10
- * Default model: 'deepseek-chat'
11
- *
12
- * @example
13
- * Here's how to create and use a DeepSeek chat model:
14
- * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model}
15
- *
16
- * @example
17
- * Here's an example with streaming response:
18
- * {@includeCode ../test/deepseek-chat-model.test.ts#example-deepseek-chat-model-streaming}
19
- */
20
- export class DeepSeekChatModel extends OpenAIChatModel {
21
- constructor(options) {
22
- super({
23
- ...options,
24
- model: options?.model || DEEPSEEK_DEFAULT_CHAT_MODEL,
25
- baseURL: options?.baseURL || DEEPSEEK_BASE_URL,
26
- });
27
- }
28
- apiKeyEnvName = "DEEPSEEK_API_KEY";
29
- supportsNativeStructuredOutputs = false;
30
- supportsToolsEmptyParameters = false;
31
- }
@@ -1 +0,0 @@
1
- export * from "./deepseek-chat-model.js";
package/lib/esm/index.js DELETED
@@ -1 +0,0 @@
1
- export * from "./deepseek-chat-model.js";
@@ -1,3 +0,0 @@
1
- {
2
- "type": "module"
3
- }