@ai-sdk/xai 3.0.111 → 3.0.112
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/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/responses/xai-responses-language-model.ts +15 -0
package/dist/index.mjs
CHANGED
|
@@ -2171,6 +2171,9 @@ var XaiResponsesLanguageModel = class {
|
|
|
2171
2171
|
maxOutputTokens,
|
|
2172
2172
|
temperature,
|
|
2173
2173
|
topP,
|
|
2174
|
+
topK,
|
|
2175
|
+
frequencyPenalty,
|
|
2176
|
+
presencePenalty,
|
|
2174
2177
|
stopSequences,
|
|
2175
2178
|
seed,
|
|
2176
2179
|
responseFormat,
|
|
@@ -2185,6 +2188,15 @@ var XaiResponsesLanguageModel = class {
|
|
|
2185
2188
|
providerOptions,
|
|
2186
2189
|
schema: xaiLanguageModelResponsesOptions
|
|
2187
2190
|
})) != null ? _a : {};
|
|
2191
|
+
if (topK != null) {
|
|
2192
|
+
warnings.push({ type: "unsupported", feature: "topK" });
|
|
2193
|
+
}
|
|
2194
|
+
if (frequencyPenalty != null) {
|
|
2195
|
+
warnings.push({ type: "unsupported", feature: "frequencyPenalty" });
|
|
2196
|
+
}
|
|
2197
|
+
if (presencePenalty != null) {
|
|
2198
|
+
warnings.push({ type: "unsupported", feature: "presencePenalty" });
|
|
2199
|
+
}
|
|
2188
2200
|
if (stopSequences != null) {
|
|
2189
2201
|
warnings.push({ type: "unsupported", feature: "stopSequences" });
|
|
2190
2202
|
}
|
|
@@ -2942,7 +2954,7 @@ var xaiTools = {
|
|
|
2942
2954
|
};
|
|
2943
2955
|
|
|
2944
2956
|
// src/version.ts
|
|
2945
|
-
var VERSION = true ? "3.0.
|
|
2957
|
+
var VERSION = true ? "3.0.112" : "0.0.0-test";
|
|
2946
2958
|
|
|
2947
2959
|
// src/xai-video-model.ts
|
|
2948
2960
|
import {
|