@ai-sdk/cohere 4.0.0-canary.37 → 4.0.0-canary.39
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 +14 -0
- package/dist/index.js +1 -1
- package/docs/25-cohere.mdx +0 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @ai-sdk/cohere
|
|
2
2
|
|
|
3
|
+
## 4.0.0-canary.39
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ca39020]
|
|
8
|
+
- @ai-sdk/provider-utils@5.0.0-canary.36
|
|
9
|
+
|
|
10
|
+
## 4.0.0-canary.38
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [f634bac]
|
|
15
|
+
- @ai-sdk/provider-utils@5.0.0-canary.35
|
|
16
|
+
|
|
3
17
|
## 4.0.0-canary.37
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -1127,7 +1127,7 @@ var CohereRerankingModel = class {
|
|
|
1127
1127
|
};
|
|
1128
1128
|
|
|
1129
1129
|
// src/version.ts
|
|
1130
|
-
var VERSION = true ? "4.0.0-canary.
|
|
1130
|
+
var VERSION = true ? "4.0.0-canary.39" : "0.0.0-test";
|
|
1131
1131
|
|
|
1132
1132
|
// src/cohere-provider.ts
|
|
1133
1133
|
function createCohere(options = {}) {
|
package/docs/25-cohere.mdx
CHANGED
|
@@ -263,7 +263,6 @@ The following provider options are available:
|
|
|
263
263
|
- **inputType** _'search_document' | 'search_query' | 'classification' | 'clustering'_
|
|
264
264
|
|
|
265
265
|
Specifies the type of input passed to the model. Default is `search_query`.
|
|
266
|
-
|
|
267
266
|
- `search_document`: Used for embeddings stored in a vector database for search use-cases.
|
|
268
267
|
- `search_query`: Used for embeddings of search queries run against a vector DB to find relevant documents.
|
|
269
268
|
- `classification`: Used for embeddings passed through a text classifier.
|
|
@@ -273,7 +272,6 @@ The following provider options are available:
|
|
|
273
272
|
|
|
274
273
|
Specifies how the API will handle inputs longer than the maximum token length.
|
|
275
274
|
Default is `END`.
|
|
276
|
-
|
|
277
275
|
- `NONE`: If selected, when the input exceeds the maximum input token length will return an error.
|
|
278
276
|
- `START`: Will discard the start of the input until the remaining input is exactly the maximum input token length for the model.
|
|
279
277
|
- `END`: Will discard the end of the input until the remaining input is exactly the maximum input token length for the model.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-sdk/cohere",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.39",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@ai-sdk/provider": "4.0.0-canary.16",
|
|
33
|
-
"@ai-sdk/provider-utils": "5.0.0-canary.
|
|
33
|
+
"@ai-sdk/provider-utils": "5.0.0-canary.36"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "20.17.24",
|