@prestyj/ai 4.3.57 → 4.3.59
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/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -62,6 +62,9 @@ var ProviderError = class extends EZCoderAIError {
|
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
// src/providers/anthropic.ts
|
|
66
|
+
var import_sdk = __toESM(require("@anthropic-ai/sdk"), 1);
|
|
67
|
+
|
|
65
68
|
// src/utils/event-stream.ts
|
|
66
69
|
var EventStream = class {
|
|
67
70
|
queue = [];
|
|
@@ -162,9 +165,6 @@ var StreamResult = class {
|
|
|
162
165
|
}
|
|
163
166
|
};
|
|
164
167
|
|
|
165
|
-
// src/providers/anthropic.ts
|
|
166
|
-
var import_sdk = __toESM(require("@anthropic-ai/sdk"), 1);
|
|
167
|
-
|
|
168
168
|
// src/utils/zod-to-json-schema.ts
|
|
169
169
|
var import_zod = require("zod");
|
|
170
170
|
function zodToJsonSchema(schema) {
|
|
@@ -1654,6 +1654,12 @@ providerRegistry.register("moonshot", {
|
|
|
1654
1654
|
baseUrl: options.baseUrl ?? "https://api.moonshot.ai/v1"
|
|
1655
1655
|
})
|
|
1656
1656
|
});
|
|
1657
|
+
providerRegistry.register("deepseek", {
|
|
1658
|
+
stream: (options) => streamOpenAI({
|
|
1659
|
+
...options,
|
|
1660
|
+
baseUrl: options.baseUrl ?? "https://api.deepseek.com/v1"
|
|
1661
|
+
})
|
|
1662
|
+
});
|
|
1657
1663
|
providerRegistry.register("openrouter", {
|
|
1658
1664
|
stream: (options) => streamOpenAI({
|
|
1659
1665
|
...options,
|