@ai-sdk/openai 3.0.19 → 3.0.21

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.
@@ -1366,42 +1366,42 @@ var openaiCompletionProviderOptions = (0, import_provider_utils7.lazySchema)(
1366
1366
  () => (0, import_provider_utils7.zodSchema)(
1367
1367
  import_v45.z.object({
1368
1368
  /**
1369
- Echo back the prompt in addition to the completion.
1370
- */
1369
+ * Echo back the prompt in addition to the completion.
1370
+ */
1371
1371
  echo: import_v45.z.boolean().optional(),
1372
1372
  /**
1373
- Modify the likelihood of specified tokens appearing in the completion.
1374
-
1375
- Accepts a JSON object that maps tokens (specified by their token ID in
1376
- the GPT tokenizer) to an associated bias value from -100 to 100. You
1377
- can use this tokenizer tool to convert text to token IDs. Mathematically,
1378
- the bias is added to the logits generated by the model prior to sampling.
1379
- The exact effect will vary per model, but values between -1 and 1 should
1380
- decrease or increase likelihood of selection; values like -100 or 100
1381
- should result in a ban or exclusive selection of the relevant token.
1382
-
1383
- As an example, you can pass {"50256": -100} to prevent the <|endoftext|>
1384
- token from being generated.
1373
+ * Modify the likelihood of specified tokens appearing in the completion.
1374
+ *
1375
+ * Accepts a JSON object that maps tokens (specified by their token ID in
1376
+ * the GPT tokenizer) to an associated bias value from -100 to 100. You
1377
+ * can use this tokenizer tool to convert text to token IDs. Mathematically,
1378
+ * the bias is added to the logits generated by the model prior to sampling.
1379
+ * The exact effect will vary per model, but values between -1 and 1 should
1380
+ * decrease or increase likelihood of selection; values like -100 or 100
1381
+ * should result in a ban or exclusive selection of the relevant token.
1382
+ *
1383
+ * As an example, you can pass {"50256": -100} to prevent the <|endoftext|>
1384
+ * token from being generated.
1385
1385
  */
1386
1386
  logitBias: import_v45.z.record(import_v45.z.string(), import_v45.z.number()).optional(),
1387
1387
  /**
1388
- The suffix that comes after a completion of inserted text.
1388
+ * The suffix that comes after a completion of inserted text.
1389
1389
  */
1390
1390
  suffix: import_v45.z.string().optional(),
1391
1391
  /**
1392
- A unique identifier representing your end-user, which can help OpenAI to
1393
- monitor and detect abuse. Learn more.
1392
+ * A unique identifier representing your end-user, which can help OpenAI to
1393
+ * monitor and detect abuse. Learn more.
1394
1394
  */
1395
1395
  user: import_v45.z.string().optional(),
1396
1396
  /**
1397
- Return the log probabilities of the tokens. Including logprobs will increase
1398
- the response size and can slow down response times. However, it can
1399
- be useful to better understand how the model is behaving.
1400
- Setting to true will return the log probabilities of the tokens that
1401
- were generated.
1402
- Setting to a number will return the log probabilities of the top n
1403
- tokens that were generated.
1404
- */
1397
+ * Return the log probabilities of the tokens. Including logprobs will increase
1398
+ * the response size and can slow down response times. However, it can
1399
+ * be useful to better understand how the model is behaving.
1400
+ * Setting to true will return the log probabilities of the tokens that
1401
+ * were generated.
1402
+ * Setting to a number will return the log probabilities of the top n
1403
+ * tokens that were generated.
1404
+ */
1405
1405
  logprobs: import_v45.z.union([import_v45.z.boolean(), import_v45.z.number()]).optional()
1406
1406
  })
1407
1407
  )
@@ -1647,14 +1647,14 @@ var openaiEmbeddingProviderOptions = (0, import_provider_utils9.lazySchema)(
1647
1647
  () => (0, import_provider_utils9.zodSchema)(
1648
1648
  import_v46.z.object({
1649
1649
  /**
1650
- The number of dimensions the resulting output embeddings should have.
1651
- Only supported in text-embedding-3 and later models.
1652
- */
1650
+ * The number of dimensions the resulting output embeddings should have.
1651
+ * Only supported in text-embedding-3 and later models.
1652
+ */
1653
1653
  dimensions: import_v46.z.number().optional(),
1654
1654
  /**
1655
- A unique identifier representing your end-user, which can help OpenAI to
1656
- monitor and detect abuse. Learn more.
1657
- */
1655
+ * A unique identifier representing your end-user, which can help OpenAI to
1656
+ * monitor and detect abuse. Learn more.
1657
+ */
1658
1658
  user: import_v46.z.string().optional()
1659
1659
  })
1660
1660
  )