@adaline/openai 0.29.0 → 0.30.0

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.d.mts CHANGED
@@ -3767,6 +3767,7 @@ declare const GPT_3_5_Turbo_0125Schema: {
3767
3767
  }>;
3768
3768
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3769
3769
  };
3770
+ maxReasoningTokens?: number | undefined;
3770
3771
  };
3771
3772
  declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
3772
3773
  modelName: z.ZodString;
@@ -3841,6 +3842,7 @@ declare const GPT_3_5_Turbo_1106Schema: {
3841
3842
  }>;
3842
3843
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3843
3844
  };
3845
+ maxReasoningTokens?: number | undefined;
3844
3846
  };
3845
3847
  declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
3846
3848
  modelName: z.ZodString;
@@ -3915,6 +3917,7 @@ declare const GPT_3_5_TurboSchema: {
3915
3917
  }>;
3916
3918
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3917
3919
  };
3920
+ maxReasoningTokens?: number | undefined;
3918
3921
  };
3919
3922
  declare const GPT_3_5_TurboOptions: z.ZodObject<{
3920
3923
  modelName: z.ZodString;
@@ -3989,6 +3992,7 @@ declare const GPT_4_0125_PreviewSchema: {
3989
3992
  }>;
3990
3993
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3991
3994
  };
3995
+ maxReasoningTokens?: number | undefined;
3992
3996
  };
3993
3997
  declare const GPT_4_0125_PreviewOptions: z.ZodObject<{
3994
3998
  modelName: z.ZodString;
@@ -4063,6 +4067,7 @@ declare const GPT_4_0613Schema: {
4063
4067
  }>;
4064
4068
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4065
4069
  };
4070
+ maxReasoningTokens?: number | undefined;
4066
4071
  };
4067
4072
  declare const GPT_4_0613Options: z.ZodObject<{
4068
4073
  modelName: z.ZodString;
@@ -4137,6 +4142,7 @@ declare const GPT_4_1106_PreviewSchema: {
4137
4142
  }>;
4138
4143
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4139
4144
  };
4145
+ maxReasoningTokens?: number | undefined;
4140
4146
  };
4141
4147
  declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
4142
4148
  modelName: z.ZodString;
@@ -4211,6 +4217,7 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
4211
4217
  }>;
4212
4218
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4213
4219
  };
4220
+ maxReasoningTokens?: number | undefined;
4214
4221
  };
4215
4222
  declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
4216
4223
  modelName: z.ZodString;
@@ -4285,6 +4292,7 @@ declare const GPT_4_Turbo_PreviewSchema: {
4285
4292
  }>;
4286
4293
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4287
4294
  };
4295
+ maxReasoningTokens?: number | undefined;
4288
4296
  };
4289
4297
  declare const GPT_4_Turbo_PreviewOptions: z.ZodObject<{
4290
4298
  modelName: z.ZodString;
@@ -4359,6 +4367,7 @@ declare const GPT_4_TurboSchema: {
4359
4367
  }>;
4360
4368
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4361
4369
  };
4370
+ maxReasoningTokens?: number | undefined;
4362
4371
  };
4363
4372
  declare const GPT_4_TurboOptions: z.ZodObject<{
4364
4373
  modelName: z.ZodString;
@@ -4433,6 +4442,7 @@ declare const GPT_4Schema: {
4433
4442
  }>;
4434
4443
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4435
4444
  };
4445
+ maxReasoningTokens?: number | undefined;
4436
4446
  };
4437
4447
  declare const GPT_4Options: z.ZodObject<{
4438
4448
  modelName: z.ZodString;
@@ -4507,6 +4517,7 @@ declare const GPT_4o_2024_05_13Schema: {
4507
4517
  }>;
4508
4518
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4509
4519
  };
4520
+ maxReasoningTokens?: number | undefined;
4510
4521
  };
4511
4522
  declare const GPT_4o_2024_05_13Options: z.ZodObject<{
4512
4523
  modelName: z.ZodString;
@@ -4581,6 +4592,7 @@ declare const GPT_4o_2024_08_06Schema: {
4581
4592
  }>;
4582
4593
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4583
4594
  };
4595
+ maxReasoningTokens?: number | undefined;
4584
4596
  };
4585
4597
  declare const GPT_4o_2024_08_06Options: z.ZodObject<{
4586
4598
  modelName: z.ZodString;
@@ -4655,6 +4667,7 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
4655
4667
  }>;
4656
4668
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4657
4669
  };
4670
+ maxReasoningTokens?: number | undefined;
4658
4671
  };
4659
4672
  declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
4660
4673
  modelName: z.ZodString;
@@ -4729,6 +4742,7 @@ declare const GPT_4o_MiniSchema: {
4729
4742
  }>;
4730
4743
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4731
4744
  };
4745
+ maxReasoningTokens?: number | undefined;
4732
4746
  };
4733
4747
  declare const GPT_4o_MiniOptions: z.ZodObject<{
4734
4748
  modelName: z.ZodString;
@@ -4803,6 +4817,7 @@ declare const GPT_4oSchema: {
4803
4817
  }>;
4804
4818
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4805
4819
  };
4820
+ maxReasoningTokens?: number | undefined;
4806
4821
  };
4807
4822
  declare const GPT_4oOptions: z.ZodObject<{
4808
4823
  modelName: z.ZodString;
@@ -4877,6 +4892,7 @@ declare const O1_2024_12_17Schema: {
4877
4892
  }>;
4878
4893
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4879
4894
  };
4895
+ maxReasoningTokens?: number | undefined;
4880
4896
  };
4881
4897
  declare const O1_2024_12_17Options: z.ZodObject<{
4882
4898
  modelName: z.ZodString;
@@ -4951,6 +4967,7 @@ declare const O1_Mini_2024_09_12Schema: {
4951
4967
  }>;
4952
4968
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4953
4969
  };
4970
+ maxReasoningTokens?: number | undefined;
4954
4971
  };
4955
4972
  declare const O1_Mini_2024_09_12Options: z.ZodObject<{
4956
4973
  modelName: z.ZodString;
@@ -5025,6 +5042,7 @@ declare const O1_MiniSchema: {
5025
5042
  }>;
5026
5043
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5027
5044
  };
5045
+ maxReasoningTokens?: number | undefined;
5028
5046
  };
5029
5047
  declare const O1_MiniOptions: z.ZodObject<{
5030
5048
  modelName: z.ZodString;
@@ -5099,6 +5117,7 @@ declare const O1_PreviewSchema: {
5099
5117
  }>;
5100
5118
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5101
5119
  };
5120
+ maxReasoningTokens?: number | undefined;
5102
5121
  };
5103
5122
  declare const O1_PreviewOptions: z.ZodObject<{
5104
5123
  modelName: z.ZodString;
@@ -5173,6 +5192,7 @@ declare const O1Schema: {
5173
5192
  }>;
5174
5193
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5175
5194
  };
5195
+ maxReasoningTokens?: number | undefined;
5176
5196
  };
5177
5197
  declare const O1Options: z.ZodObject<{
5178
5198
  modelName: z.ZodString;
package/dist/index.d.ts CHANGED
@@ -3767,6 +3767,7 @@ declare const GPT_3_5_Turbo_0125Schema: {
3767
3767
  }>;
3768
3768
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3769
3769
  };
3770
+ maxReasoningTokens?: number | undefined;
3770
3771
  };
3771
3772
  declare const GPT_3_5_Turbo_0125Options: z.ZodObject<{
3772
3773
  modelName: z.ZodString;
@@ -3841,6 +3842,7 @@ declare const GPT_3_5_Turbo_1106Schema: {
3841
3842
  }>;
3842
3843
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3843
3844
  };
3845
+ maxReasoningTokens?: number | undefined;
3844
3846
  };
3845
3847
  declare const GPT_3_5_Turbo_1106Options: z.ZodObject<{
3846
3848
  modelName: z.ZodString;
@@ -3915,6 +3917,7 @@ declare const GPT_3_5_TurboSchema: {
3915
3917
  }>;
3916
3918
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3917
3919
  };
3920
+ maxReasoningTokens?: number | undefined;
3918
3921
  };
3919
3922
  declare const GPT_3_5_TurboOptions: z.ZodObject<{
3920
3923
  modelName: z.ZodString;
@@ -3989,6 +3992,7 @@ declare const GPT_4_0125_PreviewSchema: {
3989
3992
  }>;
3990
3993
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
3991
3994
  };
3995
+ maxReasoningTokens?: number | undefined;
3992
3996
  };
3993
3997
  declare const GPT_4_0125_PreviewOptions: z.ZodObject<{
3994
3998
  modelName: z.ZodString;
@@ -4063,6 +4067,7 @@ declare const GPT_4_0613Schema: {
4063
4067
  }>;
4064
4068
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4065
4069
  };
4070
+ maxReasoningTokens?: number | undefined;
4066
4071
  };
4067
4072
  declare const GPT_4_0613Options: z.ZodObject<{
4068
4073
  modelName: z.ZodString;
@@ -4137,6 +4142,7 @@ declare const GPT_4_1106_PreviewSchema: {
4137
4142
  }>;
4138
4143
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4139
4144
  };
4145
+ maxReasoningTokens?: number | undefined;
4140
4146
  };
4141
4147
  declare const GPT_4_1106_PreviewOptions: z.ZodObject<{
4142
4148
  modelName: z.ZodString;
@@ -4211,6 +4217,7 @@ declare const GPT_4_Turbo_2024_04_09Schema: {
4211
4217
  }>;
4212
4218
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4213
4219
  };
4220
+ maxReasoningTokens?: number | undefined;
4214
4221
  };
4215
4222
  declare const GPT_4_Turbo_2024_04_09Options: z.ZodObject<{
4216
4223
  modelName: z.ZodString;
@@ -4285,6 +4292,7 @@ declare const GPT_4_Turbo_PreviewSchema: {
4285
4292
  }>;
4286
4293
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4287
4294
  };
4295
+ maxReasoningTokens?: number | undefined;
4288
4296
  };
4289
4297
  declare const GPT_4_Turbo_PreviewOptions: z.ZodObject<{
4290
4298
  modelName: z.ZodString;
@@ -4359,6 +4367,7 @@ declare const GPT_4_TurboSchema: {
4359
4367
  }>;
4360
4368
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4361
4369
  };
4370
+ maxReasoningTokens?: number | undefined;
4362
4371
  };
4363
4372
  declare const GPT_4_TurboOptions: z.ZodObject<{
4364
4373
  modelName: z.ZodString;
@@ -4433,6 +4442,7 @@ declare const GPT_4Schema: {
4433
4442
  }>;
4434
4443
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4435
4444
  };
4445
+ maxReasoningTokens?: number | undefined;
4436
4446
  };
4437
4447
  declare const GPT_4Options: z.ZodObject<{
4438
4448
  modelName: z.ZodString;
@@ -4507,6 +4517,7 @@ declare const GPT_4o_2024_05_13Schema: {
4507
4517
  }>;
4508
4518
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4509
4519
  };
4520
+ maxReasoningTokens?: number | undefined;
4510
4521
  };
4511
4522
  declare const GPT_4o_2024_05_13Options: z.ZodObject<{
4512
4523
  modelName: z.ZodString;
@@ -4581,6 +4592,7 @@ declare const GPT_4o_2024_08_06Schema: {
4581
4592
  }>;
4582
4593
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4583
4594
  };
4595
+ maxReasoningTokens?: number | undefined;
4584
4596
  };
4585
4597
  declare const GPT_4o_2024_08_06Options: z.ZodObject<{
4586
4598
  modelName: z.ZodString;
@@ -4655,6 +4667,7 @@ declare const GPT_4o_Mini_2024_07_18Schema: {
4655
4667
  }>;
4656
4668
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4657
4669
  };
4670
+ maxReasoningTokens?: number | undefined;
4658
4671
  };
4659
4672
  declare const GPT_4o_Mini_2024_07_18Options: z.ZodObject<{
4660
4673
  modelName: z.ZodString;
@@ -4729,6 +4742,7 @@ declare const GPT_4o_MiniSchema: {
4729
4742
  }>;
4730
4743
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4731
4744
  };
4745
+ maxReasoningTokens?: number | undefined;
4732
4746
  };
4733
4747
  declare const GPT_4o_MiniOptions: z.ZodObject<{
4734
4748
  modelName: z.ZodString;
@@ -4803,6 +4817,7 @@ declare const GPT_4oSchema: {
4803
4817
  }>;
4804
4818
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4805
4819
  };
4820
+ maxReasoningTokens?: number | undefined;
4806
4821
  };
4807
4822
  declare const GPT_4oOptions: z.ZodObject<{
4808
4823
  modelName: z.ZodString;
@@ -4877,6 +4892,7 @@ declare const O1_2024_12_17Schema: {
4877
4892
  }>;
4878
4893
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4879
4894
  };
4895
+ maxReasoningTokens?: number | undefined;
4880
4896
  };
4881
4897
  declare const O1_2024_12_17Options: z.ZodObject<{
4882
4898
  modelName: z.ZodString;
@@ -4951,6 +4967,7 @@ declare const O1_Mini_2024_09_12Schema: {
4951
4967
  }>;
4952
4968
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
4953
4969
  };
4970
+ maxReasoningTokens?: number | undefined;
4954
4971
  };
4955
4972
  declare const O1_Mini_2024_09_12Options: z.ZodObject<{
4956
4973
  modelName: z.ZodString;
@@ -5025,6 +5042,7 @@ declare const O1_MiniSchema: {
5025
5042
  }>;
5026
5043
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5027
5044
  };
5045
+ maxReasoningTokens?: number | undefined;
5028
5046
  };
5029
5047
  declare const O1_MiniOptions: z.ZodObject<{
5030
5048
  modelName: z.ZodString;
@@ -5099,6 +5117,7 @@ declare const O1_PreviewSchema: {
5099
5117
  }>;
5100
5118
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5101
5119
  };
5120
+ maxReasoningTokens?: number | undefined;
5102
5121
  };
5103
5122
  declare const O1_PreviewOptions: z.ZodObject<{
5104
5123
  modelName: z.ZodString;
@@ -5173,6 +5192,7 @@ declare const O1Schema: {
5173
5192
  }>;
5174
5193
  schema: z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, unknown, unknown>;
5175
5194
  };
5195
+ maxReasoningTokens?: number | undefined;
5176
5196
  };
5177
5197
  declare const O1Options: z.ZodObject<{
5178
5198
  modelName: z.ZodString;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaline/openai",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "private": false,
@@ -46,8 +46,8 @@
46
46
  ],
47
47
  "dependencies": {
48
48
  "zod": "^3.23.8",
49
- "@adaline/provider": "0.23.0",
50
- "@adaline/types": "0.21.0"
49
+ "@adaline/provider": "0.24.0",
50
+ "@adaline/types": "0.22.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@adaline/tsconfig": "0.11.0",
@@ -59,7 +59,7 @@
59
59
  "lint": "eslint . --ext js,jsx,ts,tsx",
60
60
  "format": "prettier --write .",
61
61
  "post": "npm publish --access public",
62
- "test": "jest",
63
- "test:watch": "jest --watch"
62
+ "test": "vitest run",
63
+ "test:watch": "vitest watch"
64
64
  }
65
65
  }