@ai-sdk/deepseek 1.0.63 → 1.0.64

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,14 @@
1
1
  # @ai-sdk/deepseek
2
2
 
3
+ ## 1.0.64
4
+
5
+ ### Patch Changes
6
+
7
+ - ed46cf7: Defer DeepSeek validation schema creation until first use and cache shared schemas while preserving the internal Zod object exports.
8
+ - Updated dependencies [d7b0ffa]
9
+ - Updated dependencies [4146790]
10
+ - @ai-sdk/provider-utils@3.0.42
11
+
3
12
  ## 1.0.63
4
13
 
5
14
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ProviderV2, LanguageModelV2 } from '@ai-sdk/provider';
2
- import { FetchFunction } from '@ai-sdk/provider-utils';
3
- import { z } from 'zod/v4';
2
+ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
+ import { InferSchema, FetchFunction } from '@ai-sdk/provider-utils';
4
4
 
5
5
  type DeepSeekChatModelId = 'deepseek-flash' | 'deepseek-v4-flash' | 'deepseek-v4-pro' | 'deepseek-v4-flash-vision-exp' | (string & {});
6
6
  type DeepSeekChatOptions = {
@@ -39,15 +39,15 @@ type DeepSeekChatOptions = {
39
39
  */
40
40
  strictJsonSchema?: boolean;
41
41
  };
42
- declare const deepseekMessageProviderOptions: z.ZodObject<{
43
- name: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strip>;
45
- type DeepSeekMessageProviderOptions = z.infer<typeof deepseekMessageProviderOptions>;
46
- declare const deepseekAssistantMessageProviderOptions: z.ZodObject<{
47
- name: z.ZodOptional<z.ZodString>;
48
- prefix: z.ZodOptional<z.ZodLiteral<true>>;
49
- }, z.core.$strip>;
50
- type DeepSeekAssistantMessageProviderOptions = z.infer<typeof deepseekAssistantMessageProviderOptions>;
42
+ declare const deepseekMessageProviderOptions: _ai_sdk_provider_utils.LazySchema<{
43
+ name?: string | undefined;
44
+ }>;
45
+ type DeepSeekMessageProviderOptions = InferSchema<typeof deepseekMessageProviderOptions>;
46
+ declare const deepseekAssistantMessageProviderOptions: _ai_sdk_provider_utils.LazySchema<{
47
+ name?: string | undefined;
48
+ prefix?: true | undefined;
49
+ }>;
50
+ type DeepSeekAssistantMessageProviderOptions = InferSchema<typeof deepseekAssistantMessageProviderOptions>;
51
51
 
52
52
  interface DeepSeekProviderSettings {
53
53
  /**
@@ -87,25 +87,20 @@ declare const deepseek: DeepSeekProvider;
87
87
 
88
88
  declare const VERSION: string;
89
89
 
90
- declare const deepSeekErrorSchema: z.ZodObject<{
91
- error: z.ZodObject<{
92
- message: z.ZodString;
93
- type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
- param: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
95
- code: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
96
- }, z.core.$strip>;
97
- }, z.core.$strip>;
98
- type DeepSeekErrorData = z.infer<typeof deepSeekErrorSchema>;
90
+ declare const deepSeekErrorSchema: _ai_sdk_provider_utils.LazySchema<{
91
+ error: {
92
+ message: string;
93
+ type?: string | null | undefined;
94
+ param?: any;
95
+ code?: string | number | null | undefined;
96
+ };
97
+ }>;
98
+ type DeepSeekErrorData = InferSchema<typeof deepSeekErrorSchema>;
99
99
 
100
- declare const deepseekFilePartProviderOptions: z.ZodObject<{
101
- imageDetail: z.ZodOptional<z.ZodEnum<{
102
- low: "low";
103
- high: "high";
104
- original: "original";
105
- auto: "auto";
106
- }>>;
107
- fileData: z.ZodOptional<z.ZodLiteral<true>>;
108
- }, z.core.$strip>;
109
- type DeepSeekFilePartProviderOptions = z.infer<typeof deepseekFilePartProviderOptions>;
100
+ declare const deepseekFilePartProviderOptions: _ai_sdk_provider_utils.LazySchema<{
101
+ imageDetail?: "low" | "high" | "original" | "auto" | undefined;
102
+ fileData?: true | undefined;
103
+ }>;
104
+ type DeepSeekFilePartProviderOptions = InferSchema<typeof deepseekFilePartProviderOptions>;
110
105
 
111
106
  export { type DeepSeekAssistantMessageProviderOptions, type DeepSeekChatOptions, type DeepSeekErrorData, type DeepSeekFilePartProviderOptions, type DeepSeekMessageProviderOptions, type DeepSeekProvider, type DeepSeekProviderSettings, VERSION, createDeepSeek, deepseek };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { ProviderV2, LanguageModelV2 } from '@ai-sdk/provider';
2
- import { FetchFunction } from '@ai-sdk/provider-utils';
3
- import { z } from 'zod/v4';
2
+ import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
3
+ import { InferSchema, FetchFunction } from '@ai-sdk/provider-utils';
4
4
 
5
5
  type DeepSeekChatModelId = 'deepseek-flash' | 'deepseek-v4-flash' | 'deepseek-v4-pro' | 'deepseek-v4-flash-vision-exp' | (string & {});
6
6
  type DeepSeekChatOptions = {
@@ -39,15 +39,15 @@ type DeepSeekChatOptions = {
39
39
  */
40
40
  strictJsonSchema?: boolean;
41
41
  };
42
- declare const deepseekMessageProviderOptions: z.ZodObject<{
43
- name: z.ZodOptional<z.ZodString>;
44
- }, z.core.$strip>;
45
- type DeepSeekMessageProviderOptions = z.infer<typeof deepseekMessageProviderOptions>;
46
- declare const deepseekAssistantMessageProviderOptions: z.ZodObject<{
47
- name: z.ZodOptional<z.ZodString>;
48
- prefix: z.ZodOptional<z.ZodLiteral<true>>;
49
- }, z.core.$strip>;
50
- type DeepSeekAssistantMessageProviderOptions = z.infer<typeof deepseekAssistantMessageProviderOptions>;
42
+ declare const deepseekMessageProviderOptions: _ai_sdk_provider_utils.LazySchema<{
43
+ name?: string | undefined;
44
+ }>;
45
+ type DeepSeekMessageProviderOptions = InferSchema<typeof deepseekMessageProviderOptions>;
46
+ declare const deepseekAssistantMessageProviderOptions: _ai_sdk_provider_utils.LazySchema<{
47
+ name?: string | undefined;
48
+ prefix?: true | undefined;
49
+ }>;
50
+ type DeepSeekAssistantMessageProviderOptions = InferSchema<typeof deepseekAssistantMessageProviderOptions>;
51
51
 
52
52
  interface DeepSeekProviderSettings {
53
53
  /**
@@ -87,25 +87,20 @@ declare const deepseek: DeepSeekProvider;
87
87
 
88
88
  declare const VERSION: string;
89
89
 
90
- declare const deepSeekErrorSchema: z.ZodObject<{
91
- error: z.ZodObject<{
92
- message: z.ZodString;
93
- type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
94
- param: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
95
- code: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
96
- }, z.core.$strip>;
97
- }, z.core.$strip>;
98
- type DeepSeekErrorData = z.infer<typeof deepSeekErrorSchema>;
90
+ declare const deepSeekErrorSchema: _ai_sdk_provider_utils.LazySchema<{
91
+ error: {
92
+ message: string;
93
+ type?: string | null | undefined;
94
+ param?: any;
95
+ code?: string | number | null | undefined;
96
+ };
97
+ }>;
98
+ type DeepSeekErrorData = InferSchema<typeof deepSeekErrorSchema>;
99
99
 
100
- declare const deepseekFilePartProviderOptions: z.ZodObject<{
101
- imageDetail: z.ZodOptional<z.ZodEnum<{
102
- low: "low";
103
- high: "high";
104
- original: "original";
105
- auto: "auto";
106
- }>>;
107
- fileData: z.ZodOptional<z.ZodLiteral<true>>;
108
- }, z.core.$strip>;
109
- type DeepSeekFilePartProviderOptions = z.infer<typeof deepseekFilePartProviderOptions>;
100
+ declare const deepseekFilePartProviderOptions: _ai_sdk_provider_utils.LazySchema<{
101
+ imageDetail?: "low" | "high" | "original" | "auto" | undefined;
102
+ fileData?: true | undefined;
103
+ }>;
104
+ type DeepSeekFilePartProviderOptions = InferSchema<typeof deepseekFilePartProviderOptions>;
110
105
 
111
106
  export { type DeepSeekAssistantMessageProviderOptions, type DeepSeekChatOptions, type DeepSeekErrorData, type DeepSeekFilePartProviderOptions, type DeepSeekMessageProviderOptions, type DeepSeekProvider, type DeepSeekProviderSettings, VERSION, createDeepSeek, deepseek };