@ai-sdk/alibaba 1.0.68 → 1.0.69
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 +12 -0
- package/dist/index.d.mts +15 -22
- package/dist/index.d.ts +15 -22
- package/dist/index.js +247 -209
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +223 -170
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/alibaba-chat-language-model.ts +88 -75
- package/src/alibaba-chat-options.ts +38 -29
- package/src/alibaba-embedding-model.ts +29 -22
- package/src/alibaba-embedding-options.ts +30 -21
- package/src/alibaba-error.ts +18 -9
- package/src/alibaba-video-model.ts +59 -45
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @ai-sdk/alibaba
|
|
2
2
|
|
|
3
|
+
## 1.0.69
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2fcc92f: Defer validation schema construction until first use to reduce provider import time.
|
|
8
|
+
- d726591: Encode provider-returned identifiers in follow-up request paths with a shared encodePathSegment helper.
|
|
9
|
+
- Updated dependencies [1183cc4]
|
|
10
|
+
- Updated dependencies [81df039]
|
|
11
|
+
- Updated dependencies [d726591]
|
|
12
|
+
- @ai-sdk/provider-utils@4.0.62
|
|
13
|
+
- @ai-sdk/openai-compatible@2.0.87
|
|
14
|
+
|
|
3
15
|
## 1.0.68
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
2
|
+
import { InferSchema, FetchFunction } from '@ai-sdk/provider-utils';
|
|
2
3
|
import { ProviderV3, LanguageModelV3, EmbeddingModelV3, Experimental_VideoModelV3 } from '@ai-sdk/provider';
|
|
3
|
-
import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
4
4
|
|
|
5
5
|
type AlibabaChatModelId = 'qwen3.7-max' | 'qwen3-max' | 'qwen3-max-preview' | 'qwen-plus' | 'qwen-plus-latest' | 'qwen-flash' | 'qwen-turbo' | 'qwen-turbo-latest' | 'qwen3-235b-a22b' | 'qwen3-32b' | 'qwen3-30b-a3b' | 'qwen3-14b' | 'qwen3-next-80b-a3b-thinking' | 'qwen3-235b-a22b-thinking-2507' | 'qwen3-30b-a3b-thinking-2507' | 'qwq-plus' | 'qwq-plus-latest' | 'qwq-32b' | 'qwen-coder' | 'qwen3-coder-plus' | 'qwen3-coder-flash' | (string & {});
|
|
6
|
-
declare const alibabaLanguageModelOptions:
|
|
7
|
-
enableThinking
|
|
8
|
-
thinkingBudget
|
|
9
|
-
preserveThinking
|
|
10
|
-
parallelToolCalls
|
|
11
|
-
}
|
|
12
|
-
type AlibabaLanguageModelOptions =
|
|
6
|
+
declare const alibabaLanguageModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
7
|
+
enableThinking?: boolean | undefined;
|
|
8
|
+
thinkingBudget?: number | undefined;
|
|
9
|
+
preserveThinking?: boolean | undefined;
|
|
10
|
+
parallelToolCalls?: boolean | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
type AlibabaLanguageModelOptions = InferSchema<typeof alibabaLanguageModelOptions>;
|
|
13
13
|
|
|
14
14
|
type AlibabaCacheControl = {
|
|
15
15
|
type: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
type AlibabaEmbeddingModelId = 'text-embedding-v4' | 'text-embedding-v3' | (string & {});
|
|
19
|
-
declare const alibabaEmbeddingModelOptions:
|
|
20
|
-
textType
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
outputType: z.ZodOptional<z.ZodEnum<{
|
|
26
|
-
dense: "dense";
|
|
27
|
-
sparse: "sparse";
|
|
28
|
-
"dense&sparse": "dense&sparse";
|
|
29
|
-
}>>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
type AlibabaEmbeddingModelOptions = z.infer<typeof alibabaEmbeddingModelOptions>;
|
|
19
|
+
declare const alibabaEmbeddingModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
20
|
+
textType?: "query" | "document" | undefined;
|
|
21
|
+
dimension?: number | undefined;
|
|
22
|
+
outputType?: "dense" | "sparse" | "dense&sparse" | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
type AlibabaEmbeddingModelOptions = InferSchema<typeof alibabaEmbeddingModelOptions>;
|
|
32
25
|
|
|
33
26
|
type AlibabaVideoModelId = 'wan2.6-t2v' | 'wan2.5-t2v-preview' | 'wan2.7-t2v' | 'wan2.7-t2v-2026-06-12' | 'wan2.6-i2v' | 'wan2.6-i2v-flash' | 'wan2.6-r2v' | 'wan2.6-r2v-flash' | 'wan2.7-r2v' | 'wan2.7-r2v-2026-06-12' | 'wan3.0-video' | (string & {});
|
|
34
27
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as _ai_sdk_provider_utils from '@ai-sdk/provider-utils';
|
|
2
|
+
import { InferSchema, FetchFunction } from '@ai-sdk/provider-utils';
|
|
2
3
|
import { ProviderV3, LanguageModelV3, EmbeddingModelV3, Experimental_VideoModelV3 } from '@ai-sdk/provider';
|
|
3
|
-
import { FetchFunction } from '@ai-sdk/provider-utils';
|
|
4
4
|
|
|
5
5
|
type AlibabaChatModelId = 'qwen3.7-max' | 'qwen3-max' | 'qwen3-max-preview' | 'qwen-plus' | 'qwen-plus-latest' | 'qwen-flash' | 'qwen-turbo' | 'qwen-turbo-latest' | 'qwen3-235b-a22b' | 'qwen3-32b' | 'qwen3-30b-a3b' | 'qwen3-14b' | 'qwen3-next-80b-a3b-thinking' | 'qwen3-235b-a22b-thinking-2507' | 'qwen3-30b-a3b-thinking-2507' | 'qwq-plus' | 'qwq-plus-latest' | 'qwq-32b' | 'qwen-coder' | 'qwen3-coder-plus' | 'qwen3-coder-flash' | (string & {});
|
|
6
|
-
declare const alibabaLanguageModelOptions:
|
|
7
|
-
enableThinking
|
|
8
|
-
thinkingBudget
|
|
9
|
-
preserveThinking
|
|
10
|
-
parallelToolCalls
|
|
11
|
-
}
|
|
12
|
-
type AlibabaLanguageModelOptions =
|
|
6
|
+
declare const alibabaLanguageModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
7
|
+
enableThinking?: boolean | undefined;
|
|
8
|
+
thinkingBudget?: number | undefined;
|
|
9
|
+
preserveThinking?: boolean | undefined;
|
|
10
|
+
parallelToolCalls?: boolean | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
type AlibabaLanguageModelOptions = InferSchema<typeof alibabaLanguageModelOptions>;
|
|
13
13
|
|
|
14
14
|
type AlibabaCacheControl = {
|
|
15
15
|
type: string;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
18
|
type AlibabaEmbeddingModelId = 'text-embedding-v4' | 'text-embedding-v3' | (string & {});
|
|
19
|
-
declare const alibabaEmbeddingModelOptions:
|
|
20
|
-
textType
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
outputType: z.ZodOptional<z.ZodEnum<{
|
|
26
|
-
dense: "dense";
|
|
27
|
-
sparse: "sparse";
|
|
28
|
-
"dense&sparse": "dense&sparse";
|
|
29
|
-
}>>;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
type AlibabaEmbeddingModelOptions = z.infer<typeof alibabaEmbeddingModelOptions>;
|
|
19
|
+
declare const alibabaEmbeddingModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
20
|
+
textType?: "query" | "document" | undefined;
|
|
21
|
+
dimension?: number | undefined;
|
|
22
|
+
outputType?: "dense" | "sparse" | "dense&sparse" | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
type AlibabaEmbeddingModelOptions = InferSchema<typeof alibabaEmbeddingModelOptions>;
|
|
32
25
|
|
|
33
26
|
type AlibabaVideoModelId = 'wan2.6-t2v' | 'wan2.5-t2v-preview' | 'wan2.7-t2v' | 'wan2.7-t2v-2026-06-12' | 'wan2.6-i2v' | 'wan2.6-i2v-flash' | 'wan2.6-r2v' | 'wan2.6-r2v-flash' | 'wan2.7-r2v' | 'wan2.7-r2v-2026-06-12' | 'wan3.0-video' | (string & {});
|
|
34
27
|
|