@ai-sdk/xai 4.0.20 → 4.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.
- package/CHANGELOG.md +6 -0
- package/dist/index.js +13 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/responses/xai-responses-language-model.ts +15 -0
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2310,6 +2310,9 @@ var XaiResponsesLanguageModel = class _XaiResponsesLanguageModel {
|
|
|
2310
2310
|
maxOutputTokens,
|
|
2311
2311
|
temperature,
|
|
2312
2312
|
topP,
|
|
2313
|
+
topK,
|
|
2314
|
+
frequencyPenalty,
|
|
2315
|
+
presencePenalty,
|
|
2313
2316
|
stopSequences,
|
|
2314
2317
|
seed,
|
|
2315
2318
|
responseFormat,
|
|
@@ -2325,6 +2328,15 @@ var XaiResponsesLanguageModel = class _XaiResponsesLanguageModel {
|
|
|
2325
2328
|
providerOptions,
|
|
2326
2329
|
schema: xaiLanguageModelResponsesOptions
|
|
2327
2330
|
})) != null ? _a : {};
|
|
2331
|
+
if (topK != null) {
|
|
2332
|
+
warnings.push({ type: "unsupported", feature: "topK" });
|
|
2333
|
+
}
|
|
2334
|
+
if (frequencyPenalty != null) {
|
|
2335
|
+
warnings.push({ type: "unsupported", feature: "frequencyPenalty" });
|
|
2336
|
+
}
|
|
2337
|
+
if (presencePenalty != null) {
|
|
2338
|
+
warnings.push({ type: "unsupported", feature: "presencePenalty" });
|
|
2339
|
+
}
|
|
2328
2340
|
if (stopSequences != null) {
|
|
2329
2341
|
warnings.push({ type: "unsupported", feature: "stopSequences" });
|
|
2330
2342
|
}
|
|
@@ -3498,7 +3510,7 @@ var xaiTools = {
|
|
|
3498
3510
|
};
|
|
3499
3511
|
|
|
3500
3512
|
// src/version.ts
|
|
3501
|
-
var VERSION = true ? "4.0.
|
|
3513
|
+
var VERSION = true ? "4.0.21" : "0.0.0-test";
|
|
3502
3514
|
|
|
3503
3515
|
// src/files/xai-files.ts
|
|
3504
3516
|
import {
|