ai 6.0.0-beta.126 → 6.0.0-beta.127

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
2
2
 
3
+ ## 6.0.0-beta.127
4
+
5
+ ### Patch Changes
6
+
7
+ - 614599a: chore(ai): deprecate generateObject and streamObject
8
+
3
9
  ## 6.0.0-beta.126
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -4156,6 +4156,8 @@ functionality that can be fully encapsulated in the provider.
4156
4156
 
4157
4157
  @returns
4158
4158
  A result object that contains the generated object, the finish reason, the token usage, and additional information.
4159
+
4160
+ @deprecated Use `generateText` with an `output` setting instead.
4159
4161
  */
4160
4162
  declare function generateObject<SCHEMA extends FlexibleSchema<unknown> = FlexibleSchema<JSONValue$1>, OUTPUT extends 'object' | 'array' | 'enum' | 'no-schema' = InferSchema<SCHEMA> extends string ? 'enum' : 'object', RESULT = OUTPUT extends 'array' ? Array<InferSchema<SCHEMA>> : InferSchema<SCHEMA>>(options: Omit<CallSettings, 'stopSequences'> & Prompt & (OUTPUT extends 'enum' ? {
4161
4163
  /**
@@ -4500,6 +4502,8 @@ functionality that can be fully encapsulated in the provider.
4500
4502
 
4501
4503
  @returns
4502
4504
  A result object for accessing the partial object stream and additional information.
4505
+
4506
+ @deprecated Use `streamText` with an `output` setting instead.
4503
4507
  */
4504
4508
  declare function streamObject<SCHEMA extends FlexibleSchema<unknown> = FlexibleSchema<JSONValue$1>, OUTPUT extends 'object' | 'array' | 'enum' | 'no-schema' = InferSchema<SCHEMA> extends string ? 'enum' : 'object', RESULT = OUTPUT extends 'array' ? Array<InferSchema<SCHEMA>> : InferSchema<SCHEMA>>(options: Omit<CallSettings, 'stopSequences'> & Prompt & (OUTPUT extends 'enum' ? {
4505
4509
  /**
package/dist/index.d.ts CHANGED
@@ -4156,6 +4156,8 @@ functionality that can be fully encapsulated in the provider.
4156
4156
 
4157
4157
  @returns
4158
4158
  A result object that contains the generated object, the finish reason, the token usage, and additional information.
4159
+
4160
+ @deprecated Use `generateText` with an `output` setting instead.
4159
4161
  */
4160
4162
  declare function generateObject<SCHEMA extends FlexibleSchema<unknown> = FlexibleSchema<JSONValue$1>, OUTPUT extends 'object' | 'array' | 'enum' | 'no-schema' = InferSchema<SCHEMA> extends string ? 'enum' : 'object', RESULT = OUTPUT extends 'array' ? Array<InferSchema<SCHEMA>> : InferSchema<SCHEMA>>(options: Omit<CallSettings, 'stopSequences'> & Prompt & (OUTPUT extends 'enum' ? {
4161
4163
  /**
@@ -4500,6 +4502,8 @@ functionality that can be fully encapsulated in the provider.
4500
4502
 
4501
4503
  @returns
4502
4504
  A result object for accessing the partial object stream and additional information.
4505
+
4506
+ @deprecated Use `streamText` with an `output` setting instead.
4503
4507
  */
4504
4508
  declare function streamObject<SCHEMA extends FlexibleSchema<unknown> = FlexibleSchema<JSONValue$1>, OUTPUT extends 'object' | 'array' | 'enum' | 'no-schema' = InferSchema<SCHEMA> extends string ? 'enum' : 'object', RESULT = OUTPUT extends 'array' ? Array<InferSchema<SCHEMA>> : InferSchema<SCHEMA>>(options: Omit<CallSettings, 'stopSequences'> & Prompt & (OUTPUT extends 'enum' ? {
4505
4509
  /**
package/dist/index.js CHANGED
@@ -870,7 +870,7 @@ function detectMediaType({
870
870
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
871
871
 
872
872
  // src/version.ts
873
- var VERSION = true ? "6.0.0-beta.126" : "0.0.0-test";
873
+ var VERSION = true ? "6.0.0-beta.127" : "0.0.0-test";
874
874
 
875
875
  // src/util/download/download.ts
876
876
  var download = async ({ url }) => {