@ai-sdk/provider 2.0.0-canary.2 → 2.0.0-canary.3

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/provider
2
2
 
3
+ ## 2.0.0-canary.3
4
+
5
+ ### Major Changes
6
+
7
+ - d1a1aa1: chore (provider): merge rawRequest into request (language model v2)
8
+
3
9
  ## 2.0.0-canary.2
4
10
 
5
11
  ### Major Changes
package/dist/index.d.mts CHANGED
@@ -1862,19 +1862,6 @@ An optional signature for verifying that the reasoning originated from the model
1862
1862
  rawSettings: Record<string, unknown>;
1863
1863
  };
1864
1864
  /**
1865
- Optional response information for telemetry and debugging purposes.
1866
- */
1867
- rawResponse?: {
1868
- /**
1869
- Response headers.
1870
- */
1871
- headers?: Record<string, string>;
1872
- /**
1873
- Response body.
1874
- */
1875
- body?: unknown;
1876
- };
1877
- /**
1878
1865
  Optional request information for telemetry and debugging purposes.
1879
1866
  */
1880
1867
  request?: {
@@ -1900,6 +1887,14 @@ An optional signature for verifying that the reasoning originated from the model
1900
1887
  The ID of the response model that was used to generate the response, if the provider sends one.
1901
1888
  */
1902
1889
  modelId?: string;
1890
+ /**
1891
+ Response headers.
1892
+ */
1893
+ headers?: Record<string, string>;
1894
+ /**
1895
+ Response body.
1896
+ */
1897
+ body?: unknown;
1903
1898
  };
1904
1899
  warnings?: LanguageModelV2CallWarning[];
1905
1900
  /**
@@ -1948,7 +1943,7 @@ An optional signature for verifying that the reasoning originated from the model
1948
1943
  /**
1949
1944
  Optional raw response data.
1950
1945
  */
1951
- rawResponse?: {
1946
+ response?: {
1952
1947
  /**
1953
1948
  Response headers.
1954
1949
  */
package/dist/index.d.ts CHANGED
@@ -1862,19 +1862,6 @@ An optional signature for verifying that the reasoning originated from the model
1862
1862
  rawSettings: Record<string, unknown>;
1863
1863
  };
1864
1864
  /**
1865
- Optional response information for telemetry and debugging purposes.
1866
- */
1867
- rawResponse?: {
1868
- /**
1869
- Response headers.
1870
- */
1871
- headers?: Record<string, string>;
1872
- /**
1873
- Response body.
1874
- */
1875
- body?: unknown;
1876
- };
1877
- /**
1878
1865
  Optional request information for telemetry and debugging purposes.
1879
1866
  */
1880
1867
  request?: {
@@ -1900,6 +1887,14 @@ An optional signature for verifying that the reasoning originated from the model
1900
1887
  The ID of the response model that was used to generate the response, if the provider sends one.
1901
1888
  */
1902
1889
  modelId?: string;
1890
+ /**
1891
+ Response headers.
1892
+ */
1893
+ headers?: Record<string, string>;
1894
+ /**
1895
+ Response body.
1896
+ */
1897
+ body?: unknown;
1903
1898
  };
1904
1899
  warnings?: LanguageModelV2CallWarning[];
1905
1900
  /**
@@ -1948,7 +1943,7 @@ An optional signature for verifying that the reasoning originated from the model
1948
1943
  /**
1949
1944
  Optional raw response data.
1950
1945
  */
1951
- rawResponse?: {
1946
+ response?: {
1952
1947
  /**
1953
1948
  Response headers.
1954
1949
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/provider",
3
- "version": "2.0.0-canary.2",
3
+ "version": "2.0.0-canary.3",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",