@ai-sdk/moonshotai 3.0.12 → 3.0.14

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @ai-sdk/moonshotai
2
2
 
3
+ ## 3.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - 341616a: feat: add kimi-k3 model and `reasoningEffort` provider option
8
+
9
+ ## 3.0.13
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [0b61267]
14
+ - @ai-sdk/openai-compatible@3.0.11
15
+
3
16
  ## 3.0.12
4
17
 
5
18
  ### Patch Changes
package/README.md CHANGED
@@ -35,7 +35,7 @@ import { moonshotai } from '@ai-sdk/moonshotai';
35
35
  import { generateText } from 'ai';
36
36
 
37
37
  const { text } = await generateText({
38
- model: moonshotai('kimi-k2.5'),
38
+ model: moonshotai('kimi-k3'),
39
39
  prompt: 'Write a JavaScript function that sorts a list:',
40
40
  });
41
41
  ```
package/dist/index.d.ts CHANGED
@@ -2,8 +2,9 @@ import { ProviderV4, LanguageModelV4 } from '@ai-sdk/provider';
2
2
  import { FetchFunction } from '@ai-sdk/provider-utils';
3
3
  import { z } from 'zod/v4';
4
4
 
5
- type MoonshotAIChatModelId = 'moonshot-v1-8k' | 'moonshot-v1-32k' | 'moonshot-v1-128k' | 'kimi-k2.5' | 'kimi-k2.6' | 'kimi-k2.7-code' | 'kimi-k2.7-code-highspeed' | (string & {});
5
+ type MoonshotAIChatModelId = 'moonshot-v1-8k' | 'moonshot-v1-32k' | 'moonshot-v1-128k' | 'kimi-k2.5' | 'kimi-k2.6' | 'kimi-k2.7-code' | 'kimi-k2.7-code-highspeed' | 'kimi-k3' | (string & {});
6
6
  declare const moonshotaiLanguageModelOptions: z.ZodObject<{
7
+ reasoningEffort: z.ZodOptional<z.ZodLiteral<"max">>;
7
8
  thinking: z.ZodOptional<z.ZodObject<{
8
9
  type: z.ZodOptional<z.ZodEnum<{
9
10
  enabled: "enabled";
package/dist/index.js CHANGED
@@ -102,7 +102,7 @@ var MoonshotAIChatLanguageModel = class _MoonshotAIChatLanguageModel extends Ope
102
102
  };
103
103
 
104
104
  // src/version.ts
105
- var VERSION = true ? "3.0.12" : "0.0.0-test";
105
+ var VERSION = true ? "3.0.14" : "0.0.0-test";
106
106
 
107
107
  // src/moonshotai-provider.ts
108
108
  var moonshotaiErrorSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/moonshotai",
3
- "version": "3.0.12",
3
+ "version": "3.0.14",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -25,7 +25,7 @@
25
25
  }
26
26
  },
27
27
  "dependencies": {
28
- "@ai-sdk/openai-compatible": "3.0.10",
28
+ "@ai-sdk/openai-compatible": "3.0.11",
29
29
  "@ai-sdk/provider": "4.0.3",
30
30
  "@ai-sdk/provider-utils": "5.0.10"
31
31
  },
@@ -34,8 +34,8 @@
34
34
  "tsup": "^8.5.1",
35
35
  "typescript": "5.8.3",
36
36
  "zod": "3.25.76",
37
- "@vercel/ai-tsconfig": "0.0.0",
38
- "@ai-sdk/test-server": "2.0.0"
37
+ "@ai-sdk/test-server": "2.0.0",
38
+ "@vercel/ai-tsconfig": "0.0.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "zod": "^3.25.76 || ^4.1.8"
@@ -8,9 +8,15 @@ export type MoonshotAIChatModelId =
8
8
  | 'kimi-k2.6'
9
9
  | 'kimi-k2.7-code'
10
10
  | 'kimi-k2.7-code-highspeed'
11
+ | 'kimi-k3'
11
12
  | (string & {});
12
13
 
13
14
  export const moonshotaiLanguageModelOptions = z.object({
15
+ /**
16
+ * Reasoning effort for Kimi K3. Currently, only `max` is supported.
17
+ */
18
+ reasoningEffort: z.literal('max').optional(),
19
+
14
20
  thinking: z
15
21
  .object({
16
22
  type: z.enum(['enabled', 'disabled']).optional(),