ai 5.0.0-canary.5 → 5.0.0-canary.6

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,13 @@
1
1
  # ai
2
2
 
3
+ ## 5.0.0-canary.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [6f6bb89]
8
+ - @ai-sdk/provider@2.0.0-canary.4
9
+ - @ai-sdk/provider-utils@3.0.0-canary.5
10
+
3
11
  ## 5.0.0-canary.5
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -92,9 +92,9 @@ type CoreToolChoice<TOOLS extends Record<string, unknown>> = ToolChoice<TOOLS>;
92
92
 
93
93
  type LanguageModelRequestMetadata = {
94
94
  /**
95
- Raw request HTTP body that was sent to the provider API as a string (JSON should be stringified).
95
+ Request HTTP body that was sent to the provider API.
96
96
  */
97
- body?: string;
97
+ body?: unknown;
98
98
  };
99
99
 
100
100
  type LanguageModelResponseMetadata = {
package/dist/index.d.ts CHANGED
@@ -92,9 +92,9 @@ type CoreToolChoice<TOOLS extends Record<string, unknown>> = ToolChoice<TOOLS>;
92
92
 
93
93
  type LanguageModelRequestMetadata = {
94
94
  /**
95
- Raw request HTTP body that was sent to the provider API as a string (JSON should be stringified).
95
+ Request HTTP body that was sent to the provider API.
96
96
  */
97
- body?: string;
97
+ body?: unknown;
98
98
  };
99
99
 
100
100
  type LanguageModelResponseMetadata = {
package/dist/index.js CHANGED
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
29
 
30
- // streams/index.ts
31
- var streams_exports = {};
32
- __export(streams_exports, {
30
+ // index.ts
31
+ var ai_exports = {};
32
+ __export(ai_exports, {
33
33
  AISDKError: () => import_provider20.AISDKError,
34
34
  APICallError: () => import_provider20.APICallError,
35
35
  DownloadError: () => DownloadError,
@@ -116,7 +116,7 @@ __export(streams_exports, {
116
116
  wrapLanguageModel: () => wrapLanguageModel,
117
117
  zodSchema: () => zodSchema
118
118
  });
119
- module.exports = __toCommonJS(streams_exports);
119
+ module.exports = __toCommonJS(ai_exports);
120
120
 
121
121
  // core/index.ts
122
122
  var import_provider_utils21 = require("@ai-sdk/provider-utils");
@@ -8136,8 +8136,8 @@ function simulateStreamingMiddleware() {
8136
8136
  });
8137
8137
  return {
8138
8138
  stream: simulatedStream,
8139
- rawCall: result.rawCall,
8140
- rawResponse: result.response,
8139
+ request: result.request,
8140
+ response: result.response,
8141
8141
  warnings: result.warnings
8142
8142
  };
8143
8143
  }