ai 3.0.26 → 3.0.27

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
@@ -202,13 +202,6 @@ function prepareCallSettings({
202
202
  message: "temperature must be a number"
203
203
  });
204
204
  }
205
- if (temperature < 0 || temperature > 1) {
206
- throw new InvalidArgumentError({
207
- parameter: "temperature",
208
- value: temperature,
209
- message: "temperature must be between 0 and 1 (inclusive)"
210
- });
211
- }
212
205
  }
213
206
  if (topP != null) {
214
207
  if (typeof topP !== "number") {
@@ -218,13 +211,6 @@ function prepareCallSettings({
218
211
  message: "topP must be a number"
219
212
  });
220
213
  }
221
- if (topP < 0 || topP > 1) {
222
- throw new InvalidArgumentError({
223
- parameter: "topP",
224
- value: topP,
225
- message: "topP must be between 0 and 1 (inclusive)"
226
- });
227
- }
228
214
  }
229
215
  if (presencePenalty != null) {
230
216
  if (typeof presencePenalty !== "number") {
@@ -234,13 +220,6 @@ function prepareCallSettings({
234
220
  message: "presencePenalty must be a number"
235
221
  });
236
222
  }
237
- if (presencePenalty < -1 || presencePenalty > 1) {
238
- throw new InvalidArgumentError({
239
- parameter: "presencePenalty",
240
- value: presencePenalty,
241
- message: "presencePenalty must be between -1 and 1 (inclusive)"
242
- });
243
- }
244
223
  }
245
224
  if (frequencyPenalty != null) {
246
225
  if (typeof frequencyPenalty !== "number") {
@@ -250,13 +229,6 @@ function prepareCallSettings({
250
229
  message: "frequencyPenalty must be a number"
251
230
  });
252
231
  }
253
- if (frequencyPenalty < -1 || frequencyPenalty > 1) {
254
- throw new InvalidArgumentError({
255
- parameter: "frequencyPenalty",
256
- value: frequencyPenalty,
257
- message: "frequencyPenalty must be between -1 and 1 (inclusive)"
258
- });
259
- }
260
232
  }
261
233
  if (seed != null) {
262
234
  if (!Number.isInteger(seed)) {