ai 5.0.106 → 5.0.107

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
+ ## 5.0.107
4
+
5
+ ### Patch Changes
6
+
7
+ - 21c9f90: fix(ai): remove unused mode setting from generateObject and streamObject
8
+
3
9
  ## 5.0.106
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -3105,7 +3105,6 @@ declare function generateObject<SCHEMA extends FlexibleSchema<unknown> = Flexibl
3105
3105
  The enum values that the model should use.
3106
3106
  */
3107
3107
  enum: Array<RESULT>;
3108
- mode?: 'json';
3109
3108
  output: 'enum';
3110
3109
  } : OUTPUT extends 'no-schema' ? {} : {
3111
3110
  /**
@@ -3124,20 +3123,6 @@ Used by some providers for additional LLM guidance, e.g.
3124
3123
  via tool or schema description.
3125
3124
  */
3126
3125
  schemaDescription?: string;
3127
- /**
3128
- The mode to use for object generation.
3129
-
3130
- The schema is converted into a JSON schema and used in one of the following ways
3131
-
3132
- - 'auto': The provider will choose the best mode for the model.
3133
- - 'tool': A tool with the JSON schema as parameters is provided and the provider is instructed to use it.
3134
- - 'json': The JSON schema and an instruction are injected into the prompt. If the provider supports JSON mode, it is enabled. If the provider supports JSON grammars, the grammar is used.
3135
-
3136
- Please note that most providers do not support all modes.
3137
-
3138
- Default and recommended: 'auto' (best mode for the model).
3139
- */
3140
- mode?: 'auto' | 'json' | 'tool';
3141
3126
  }) & {
3142
3127
  output?: OUTPUT;
3143
3128
  /**
@@ -3449,7 +3434,6 @@ declare function streamObject<SCHEMA extends FlexibleSchema<unknown> = FlexibleS
3449
3434
  The enum values that the model should use.
3450
3435
  */
3451
3436
  enum: Array<RESULT>;
3452
- mode?: 'json';
3453
3437
  output: 'enum';
3454
3438
  } : OUTPUT extends 'no-schema' ? {} : {
3455
3439
  /**
@@ -3468,20 +3452,6 @@ Used by some providers for additional LLM guidance, e.g.
3468
3452
  via tool or schema description.
3469
3453
  */
3470
3454
  schemaDescription?: string;
3471
- /**
3472
- The mode to use for object generation.
3473
-
3474
- The schema is converted into a JSON schema and used in one of the following ways
3475
-
3476
- - 'auto': The provider will choose the best mode for the model.
3477
- - 'tool': A tool with the JSON schema as parameters is provided and the provider is instructed to use it.
3478
- - 'json': The JSON schema and an instruction are injected into the prompt. If the provider supports JSON mode, it is enabled. If the provider supports JSON grammars, the grammar is used.
3479
-
3480
- Please note that most providers do not support all modes.
3481
-
3482
- Default and recommended: 'auto' (best mode for the model).
3483
- */
3484
- mode?: 'auto' | 'json' | 'tool';
3485
3455
  }) & {
3486
3456
  output?: OUTPUT;
3487
3457
  /**
package/dist/index.d.ts CHANGED
@@ -3105,7 +3105,6 @@ declare function generateObject<SCHEMA extends FlexibleSchema<unknown> = Flexibl
3105
3105
  The enum values that the model should use.
3106
3106
  */
3107
3107
  enum: Array<RESULT>;
3108
- mode?: 'json';
3109
3108
  output: 'enum';
3110
3109
  } : OUTPUT extends 'no-schema' ? {} : {
3111
3110
  /**
@@ -3124,20 +3123,6 @@ Used by some providers for additional LLM guidance, e.g.
3124
3123
  via tool or schema description.
3125
3124
  */
3126
3125
  schemaDescription?: string;
3127
- /**
3128
- The mode to use for object generation.
3129
-
3130
- The schema is converted into a JSON schema and used in one of the following ways
3131
-
3132
- - 'auto': The provider will choose the best mode for the model.
3133
- - 'tool': A tool with the JSON schema as parameters is provided and the provider is instructed to use it.
3134
- - 'json': The JSON schema and an instruction are injected into the prompt. If the provider supports JSON mode, it is enabled. If the provider supports JSON grammars, the grammar is used.
3135
-
3136
- Please note that most providers do not support all modes.
3137
-
3138
- Default and recommended: 'auto' (best mode for the model).
3139
- */
3140
- mode?: 'auto' | 'json' | 'tool';
3141
3126
  }) & {
3142
3127
  output?: OUTPUT;
3143
3128
  /**
@@ -3449,7 +3434,6 @@ declare function streamObject<SCHEMA extends FlexibleSchema<unknown> = FlexibleS
3449
3434
  The enum values that the model should use.
3450
3435
  */
3451
3436
  enum: Array<RESULT>;
3452
- mode?: 'json';
3453
3437
  output: 'enum';
3454
3438
  } : OUTPUT extends 'no-schema' ? {} : {
3455
3439
  /**
@@ -3468,20 +3452,6 @@ Used by some providers for additional LLM guidance, e.g.
3468
3452
  via tool or schema description.
3469
3453
  */
3470
3454
  schemaDescription?: string;
3471
- /**
3472
- The mode to use for object generation.
3473
-
3474
- The schema is converted into a JSON schema and used in one of the following ways
3475
-
3476
- - 'auto': The provider will choose the best mode for the model.
3477
- - 'tool': A tool with the JSON schema as parameters is provided and the provider is instructed to use it.
3478
- - 'json': The JSON schema and an instruction are injected into the prompt. If the provider supports JSON mode, it is enabled. If the provider supports JSON grammars, the grammar is used.
3479
-
3480
- Please note that most providers do not support all modes.
3481
-
3482
- Default and recommended: 'auto' (best mode for the model).
3483
- */
3484
- mode?: 'auto' | 'json' | 'tool';
3485
3455
  }) & {
3486
3456
  output?: OUTPUT;
3487
3457
  /**
package/dist/index.js CHANGED
@@ -777,7 +777,7 @@ function detectMediaType({
777
777
  var import_provider_utils2 = require("@ai-sdk/provider-utils");
778
778
 
779
779
  // src/version.ts
780
- var VERSION = true ? "5.0.106" : "0.0.0-test";
780
+ var VERSION = true ? "5.0.107" : "0.0.0-test";
781
781
 
782
782
  // src/util/download/download.ts
783
783
  var download = async ({ url }) => {