@ai-sdk/cohere 2.0.0-alpha.9 → 2.0.0-beta.2
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 +87 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +274 -164
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +192 -81
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,92 @@
|
|
|
1
1
|
# @ai-sdk/cohere
|
|
2
2
|
|
|
3
|
+
## 2.0.0-beta.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d1a034f: feature: using Zod 4 for internal stuff
|
|
8
|
+
- Updated dependencies [0571b98]
|
|
9
|
+
- Updated dependencies [39a4fab]
|
|
10
|
+
- Updated dependencies [d1a034f]
|
|
11
|
+
- @ai-sdk/provider-utils@3.0.0-beta.2
|
|
12
|
+
|
|
13
|
+
## 2.0.0-beta.1
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [742b7be]
|
|
18
|
+
- Updated dependencies [7cddb72]
|
|
19
|
+
- Updated dependencies [ccce59b]
|
|
20
|
+
- Updated dependencies [e2b9e4b]
|
|
21
|
+
- Updated dependencies [45c1ea2]
|
|
22
|
+
- Updated dependencies [e025824]
|
|
23
|
+
- Updated dependencies [0d06df6]
|
|
24
|
+
- Updated dependencies [472524a]
|
|
25
|
+
- Updated dependencies [dd3ff01]
|
|
26
|
+
- Updated dependencies [7435eb5]
|
|
27
|
+
- Updated dependencies [cb68df0]
|
|
28
|
+
- Updated dependencies [bfdca8d]
|
|
29
|
+
- Updated dependencies [44f4aba]
|
|
30
|
+
- Updated dependencies [023ba40]
|
|
31
|
+
- Updated dependencies [5e57fae]
|
|
32
|
+
- Updated dependencies [71f938d]
|
|
33
|
+
- Updated dependencies [28a5ed5]
|
|
34
|
+
- @ai-sdk/provider@2.0.0-beta.1
|
|
35
|
+
- @ai-sdk/provider-utils@3.0.0-beta.1
|
|
36
|
+
|
|
37
|
+
## 2.0.0-alpha.15
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [48d257a]
|
|
42
|
+
- Updated dependencies [8ba77a7]
|
|
43
|
+
- @ai-sdk/provider@2.0.0-alpha.15
|
|
44
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.15
|
|
45
|
+
|
|
46
|
+
## 2.0.0-alpha.14
|
|
47
|
+
|
|
48
|
+
### Patch Changes
|
|
49
|
+
|
|
50
|
+
- Updated dependencies [b5da06a]
|
|
51
|
+
- Updated dependencies [63f9e9b]
|
|
52
|
+
- Updated dependencies [2e13791]
|
|
53
|
+
- @ai-sdk/provider@2.0.0-alpha.14
|
|
54
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.14
|
|
55
|
+
|
|
56
|
+
## 2.0.0-alpha.13
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- Updated dependencies [68ecf2f]
|
|
61
|
+
- @ai-sdk/provider@2.0.0-alpha.13
|
|
62
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.13
|
|
63
|
+
|
|
64
|
+
## 2.0.0-alpha.12
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- e2aceaf: feat: add raw chunk support
|
|
69
|
+
- 4fd442b: feat(cohere): add citations support for text documents
|
|
70
|
+
- Updated dependencies [e2aceaf]
|
|
71
|
+
- @ai-sdk/provider@2.0.0-alpha.12
|
|
72
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.12
|
|
73
|
+
|
|
74
|
+
## 2.0.0-alpha.11
|
|
75
|
+
|
|
76
|
+
### Patch Changes
|
|
77
|
+
|
|
78
|
+
- Updated dependencies [c1e6647]
|
|
79
|
+
- @ai-sdk/provider@2.0.0-alpha.11
|
|
80
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.11
|
|
81
|
+
|
|
82
|
+
## 2.0.0-alpha.10
|
|
83
|
+
|
|
84
|
+
### Patch Changes
|
|
85
|
+
|
|
86
|
+
- Updated dependencies [c4df419]
|
|
87
|
+
- @ai-sdk/provider@2.0.0-alpha.10
|
|
88
|
+
- @ai-sdk/provider-utils@3.0.0-alpha.10
|
|
89
|
+
|
|
3
90
|
## 2.0.0-alpha.9
|
|
4
91
|
|
|
5
92
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -34,6 +34,10 @@ interface CohereProviderSettings {
|
|
|
34
34
|
or to provide a custom fetch implementation for e.g. testing.
|
|
35
35
|
*/
|
|
36
36
|
fetch?: FetchFunction;
|
|
37
|
+
/**
|
|
38
|
+
Optional function to generate a unique ID for each request.
|
|
39
|
+
*/
|
|
40
|
+
generateId?: () => string;
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
39
43
|
Create a Cohere AI provider instance.
|
package/dist/index.d.ts
CHANGED
|
@@ -34,6 +34,10 @@ interface CohereProviderSettings {
|
|
|
34
34
|
or to provide a custom fetch implementation for e.g. testing.
|
|
35
35
|
*/
|
|
36
36
|
fetch?: FetchFunction;
|
|
37
|
+
/**
|
|
38
|
+
Optional function to generate a unique ID for each request.
|
|
39
|
+
*/
|
|
40
|
+
generateId?: () => string;
|
|
37
41
|
}
|
|
38
42
|
/**
|
|
39
43
|
Create a Cohere AI provider instance.
|