@ai-sdk/moonshotai 0.0.5 → 0.0.7
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/CHANGELOG.md +16 -0
- package/README.md +2 -0
- package/dist/index.js +4 -4
- package/dist/index.mjs +1 -1
- package/package.json +3 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @ai-sdk/moonshotai
|
|
2
2
|
|
|
3
|
+
## 0.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5543cd1: Add AI Gateway hint to provider READMEs
|
|
8
|
+
- Updated dependencies [5543cd1]
|
|
9
|
+
- @ai-sdk/openai-compatible@1.0.36
|
|
10
|
+
|
|
11
|
+
## 0.0.6
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [a27a978]
|
|
16
|
+
- @ai-sdk/provider-utils@3.0.23
|
|
17
|
+
- @ai-sdk/openai-compatible@1.0.35
|
|
18
|
+
|
|
3
19
|
## 0.0.5
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
The **[Moonshot AI provider](https://ai-sdk.dev/providers/ai-sdk-providers/moonshotai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the [Moonshot AI](https://platform.moonshot.cn) platform, including the Kimi model series.
|
|
4
4
|
|
|
5
|
+
> **Deploying to Vercel?** With Vercel's AI Gateway you can access Moonshot AI (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).
|
|
6
|
+
|
|
5
7
|
## Setup
|
|
6
8
|
|
|
7
9
|
The Moonshot AI provider is available in the `@ai-sdk/moonshotai` module. You can install it with
|
package/dist/index.js
CHANGED
|
@@ -18,12 +18,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
19
|
|
|
20
20
|
// src/index.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
23
|
createMoonshotAI: () => createMoonshotAI,
|
|
24
24
|
moonshotai: () => moonshotai
|
|
25
25
|
});
|
|
26
|
-
module.exports = __toCommonJS(
|
|
26
|
+
module.exports = __toCommonJS(index_exports);
|
|
27
27
|
|
|
28
28
|
// src/moonshotai-provider.ts
|
|
29
29
|
var import_provider = require("@ai-sdk/provider");
|
|
@@ -106,7 +106,7 @@ var MoonshotAIChatLanguageModel = class extends import_openai_compatible.OpenAIC
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
// src/version.ts
|
|
109
|
-
var VERSION = "0.0.
|
|
109
|
+
var VERSION = "0.0.7";
|
|
110
110
|
|
|
111
111
|
// src/moonshotai-provider.ts
|
|
112
112
|
var moonshotaiErrorSchema = import_v4.z.object({
|
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/moonshotai",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ai-sdk/openai-compatible": "1.0.
|
|
28
|
+
"@ai-sdk/openai-compatible": "1.0.36",
|
|
29
29
|
"@ai-sdk/provider": "2.0.1",
|
|
30
|
-
"@ai-sdk/provider-utils": "3.0.
|
|
30
|
+
"@ai-sdk/provider-utils": "3.0.23"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/node": "20.17.24",
|
|
@@ -61,9 +61,7 @@
|
|
|
61
61
|
"build": "pnpm clean && tsup --tsconfig tsconfig.build.json",
|
|
62
62
|
"build:watch": "pnpm clean && tsup --watch",
|
|
63
63
|
"clean": "del-cli dist *.tsbuildinfo",
|
|
64
|
-
"lint": "eslint \"./**/*.ts*\"",
|
|
65
64
|
"type-check": "tsc --build",
|
|
66
|
-
"prettier-check": "prettier --check \"./**/*.ts*\"",
|
|
67
65
|
"test": "pnpm test:node && pnpm test:edge",
|
|
68
66
|
"test:update": "pnpm test:node -u",
|
|
69
67
|
"test:watch": "vitest --config vitest.node.config.js",
|