@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/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -2150,6 +2150,9 @@ var XaiResponsesLanguageModel = class {
|
|
|
2150
2150
|
maxOutputTokens,
|
|
2151
2151
|
temperature,
|
|
2152
2152
|
topP,
|
|
2153
|
+
topK,
|
|
2154
|
+
frequencyPenalty,
|
|
2155
|
+
presencePenalty,
|
|
2153
2156
|
stopSequences,
|
|
2154
2157
|
seed,
|
|
2155
2158
|
responseFormat,
|
|
@@ -2164,6 +2167,15 @@ var XaiResponsesLanguageModel = class {
|
|
|
2164
2167
|
providerOptions,
|
|
2165
2168
|
schema: xaiLanguageModelResponsesOptions
|
|
2166
2169
|
})) != null ? _a : {};
|
|
2170
|
+
if (topK != null) {
|
|
2171
|
+
warnings.push({ type: "unsupported", feature: "topK" });
|
|
2172
|
+
}
|
|
2173
|
+
if (frequencyPenalty != null) {
|
|
2174
|
+
warnings.push({ type: "unsupported", feature: "frequencyPenalty" });
|
|
2175
|
+
}
|
|
2176
|
+
if (presencePenalty != null) {
|
|
2177
|
+
warnings.push({ type: "unsupported", feature: "presencePenalty" });
|
|
2178
|
+
}
|
|
2167
2179
|
if (stopSequences != null) {
|
|
2168
2180
|
warnings.push({ type: "unsupported", feature: "stopSequences" });
|
|
2169
2181
|
}
|
|
@@ -2921,7 +2933,7 @@ var xaiTools = {
|
|
|
2921
2933
|
};
|
|
2922
2934
|
|
|
2923
2935
|
// src/version.ts
|
|
2924
|
-
var VERSION = true ? "3.0.
|
|
2936
|
+
var VERSION = true ? "3.0.112" : "0.0.0-test";
|
|
2925
2937
|
|
|
2926
2938
|
// src/xai-video-model.ts
|
|
2927
2939
|
var import_provider6 = require("@ai-sdk/provider");
|