@ai-sdk/cohere 0.0.27 → 0.0.28

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,11 @@
1
1
  # @ai-sdk/cohere
2
2
 
3
+ ## 0.0.28
4
+
5
+ ### Patch Changes
6
+
7
+ - a7cbdf6: feat (provider/cohere): Use Cohere v2 API
8
+
3
9
  ## 0.0.27
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -39,7 +39,7 @@ interface CohereProvider extends ProviderV1 {
39
39
  interface CohereProviderSettings {
40
40
  /**
41
41
  Use a different URL prefix for API calls, e.g. to use proxy servers.
42
- The default prefix is `https://api.cohere.com/v1`.
42
+ The default prefix is `https://api.cohere.com/v2`.
43
43
  */
44
44
  baseURL?: string;
45
45
  /**
@@ -56,7 +56,6 @@ interface CohereProviderSettings {
56
56
  or to provide a custom fetch implementation for e.g. testing.
57
57
  */
58
58
  fetch?: FetchFunction;
59
- generateId?: () => string;
60
59
  }
61
60
  /**
62
61
  Create a Cohere AI provider instance.
package/dist/index.d.ts CHANGED
@@ -39,7 +39,7 @@ interface CohereProvider extends ProviderV1 {
39
39
  interface CohereProviderSettings {
40
40
  /**
41
41
  Use a different URL prefix for API calls, e.g. to use proxy servers.
42
- The default prefix is `https://api.cohere.com/v1`.
42
+ The default prefix is `https://api.cohere.com/v2`.
43
43
  */
44
44
  baseURL?: string;
45
45
  /**
@@ -56,7 +56,6 @@ interface CohereProviderSettings {
56
56
  or to provide a custom fetch implementation for e.g. testing.
57
57
  */
58
58
  fetch?: FetchFunction;
59
- generateId?: () => string;
60
59
  }
61
60
  /**
62
61
  Create a Cohere AI provider instance.