@ai-sdk/cohere 2.0.45 → 2.0.47
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/dist/index.d.mts +9 -12
- package/dist/index.d.ts +9 -12
- package/dist/index.js +258 -223
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +250 -201
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @ai-sdk/cohere
|
|
2
2
|
|
|
3
|
+
## 2.0.47
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [a1a772f]
|
|
8
|
+
- @ai-sdk/provider-utils@3.0.43
|
|
9
|
+
|
|
10
|
+
## 2.0.46
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 3013561: Defer validation schema construction until first use to reduce provider import time.
|
|
15
|
+
- Updated dependencies [d7b0ffa]
|
|
16
|
+
- Updated dependencies [4146790]
|
|
17
|
+
- @ai-sdk/provider-utils@3.0.42
|
|
18
|
+
|
|
3
19
|
## 2.0.45
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { ProviderV2, LanguageModelV2, EmbeddingModelV2 } from '@ai-sdk/provider';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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 CohereChatModelId = 'command-a-03-2025' | 'command-a-reasoning-08-2025' | 'command-a-vision-07-2025' | 'command-r7b-12-2024' | 'command-r-plus-04-2024' | 'command-r-plus' | 'command-r-08-2024' | 'command-r-03-2024' | 'command-r' | 'command' | 'command-nightly' | 'command-light' | 'command-light-nightly' | (string & {});
|
|
6
|
-
declare const cohereChatModelOptions:
|
|
7
|
-
thinking
|
|
8
|
-
type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
type CohereChatModelOptions = z.infer<typeof cohereChatModelOptions>;
|
|
6
|
+
declare const cohereChatModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
7
|
+
thinking?: {
|
|
8
|
+
type?: "enabled" | "disabled" | undefined;
|
|
9
|
+
tokenBudget?: number | undefined;
|
|
10
|
+
} | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
type CohereChatModelOptions = InferSchema<typeof cohereChatModelOptions>;
|
|
16
13
|
|
|
17
14
|
type CohereEmbeddingModelId = 'embed-english-v3.0' | 'embed-multilingual-v3.0' | 'embed-english-light-v3.0' | 'embed-multilingual-light-v3.0' | 'embed-english-v2.0' | 'embed-english-light-v2.0' | 'embed-multilingual-v2.0' | (string & {});
|
|
18
15
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { ProviderV2, LanguageModelV2, EmbeddingModelV2 } from '@ai-sdk/provider';
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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 CohereChatModelId = 'command-a-03-2025' | 'command-a-reasoning-08-2025' | 'command-a-vision-07-2025' | 'command-r7b-12-2024' | 'command-r-plus-04-2024' | 'command-r-plus' | 'command-r-08-2024' | 'command-r-03-2024' | 'command-r' | 'command' | 'command-nightly' | 'command-light' | 'command-light-nightly' | (string & {});
|
|
6
|
-
declare const cohereChatModelOptions:
|
|
7
|
-
thinking
|
|
8
|
-
type
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, z.core.$strip>>;
|
|
14
|
-
}, z.core.$strip>;
|
|
15
|
-
type CohereChatModelOptions = z.infer<typeof cohereChatModelOptions>;
|
|
6
|
+
declare const cohereChatModelOptions: _ai_sdk_provider_utils.LazySchema<{
|
|
7
|
+
thinking?: {
|
|
8
|
+
type?: "enabled" | "disabled" | undefined;
|
|
9
|
+
tokenBudget?: number | undefined;
|
|
10
|
+
} | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
type CohereChatModelOptions = InferSchema<typeof cohereChatModelOptions>;
|
|
16
13
|
|
|
17
14
|
type CohereEmbeddingModelId = 'embed-english-v3.0' | 'embed-multilingual-v3.0' | 'embed-english-light-v3.0' | 'embed-multilingual-light-v3.0' | 'embed-english-v2.0' | 'embed-english-light-v2.0' | 'embed-multilingual-v2.0' | (string & {});
|
|
18
15
|
|