ai 4.1.51 → 4.1.53

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/dist/index.mjs CHANGED
@@ -2794,7 +2794,8 @@ async function generateObject({
2794
2794
  request,
2795
2795
  response: {
2796
2796
  ...response,
2797
- headers: rawResponse == null ? void 0 : rawResponse.headers
2797
+ headers: rawResponse == null ? void 0 : rawResponse.headers,
2798
+ body: rawResponse == null ? void 0 : rawResponse.body
2798
2799
  },
2799
2800
  logprobs,
2800
2801
  providerMetadata: resultProviderMetadata
@@ -3931,7 +3932,7 @@ async function generateText({
3931
3932
  }),
3932
3933
  tracer,
3933
3934
  fn: async (span) => {
3934
- var _a17, _b, _c, _d, _e, _f, _g, _h, _i;
3935
+ var _a17, _b, _c, _d, _e, _f, _g, _h, _i, _j;
3935
3936
  const mode = {
3936
3937
  type: "regular",
3937
3938
  ...prepareToolsAndToolChoice({ tools, toolChoice, activeTools })
@@ -4187,6 +4188,7 @@ async function generateText({
4187
4188
  response: {
4188
4189
  ...currentModelResponse.response,
4189
4190
  headers: (_i = currentModelResponse.rawResponse) == null ? void 0 : _i.headers,
4191
+ body: (_j = currentModelResponse.rawResponse) == null ? void 0 : _j.body,
4190
4192
  messages: responseMessages
4191
4193
  },
4192
4194
  logprobs: currentModelResponse.logprobs,
@@ -4944,7 +4946,7 @@ var DefaultStreamTextResult = class {
4944
4946
  let recordedStepText = "";
4945
4947
  let recordedContinuationText = "";
4946
4948
  let recordedFullText = "";
4947
- const stepReasoning = [];
4949
+ let stepReasoning = [];
4948
4950
  let activeReasoningText = void 0;
4949
4951
  let recordedStepSources = [];
4950
4952
  const recordedSources = [];
@@ -5058,6 +5060,8 @@ var DefaultStreamTextResult = class {
5058
5060
  recordedToolResults = [];
5059
5061
  recordedStepText = "";
5060
5062
  recordedStepSources = [];
5063
+ stepReasoning = [];
5064
+ activeReasoningText = void 0;
5061
5065
  if (nextStepType !== "done") {
5062
5066
  stepType = nextStepType;
5063
5067
  }