@ai-sdk/xai 3.0.0-beta.67 → 3.0.0-beta.69
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 +19 -0
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @ai-sdk/xai
|
|
2
2
|
|
|
3
|
+
## 3.0.0-beta.69
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [475189e]
|
|
8
|
+
- @ai-sdk/provider@3.0.0-beta.32
|
|
9
|
+
- @ai-sdk/openai-compatible@2.0.0-beta.60
|
|
10
|
+
- @ai-sdk/provider-utils@4.0.0-beta.59
|
|
11
|
+
|
|
12
|
+
## 3.0.0-beta.68
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- 2625a04: feat(openai); update spec for mcp approval
|
|
17
|
+
- Updated dependencies [2625a04]
|
|
18
|
+
- @ai-sdk/openai-compatible@2.0.0-beta.59
|
|
19
|
+
- @ai-sdk/provider@3.0.0-beta.31
|
|
20
|
+
- @ai-sdk/provider-utils@4.0.0-beta.58
|
|
21
|
+
|
|
3
22
|
## 3.0.0-beta.67
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -117,6 +117,9 @@ function convertToXaiChatMessages(prompt) {
|
|
|
117
117
|
}
|
|
118
118
|
case "tool": {
|
|
119
119
|
for (const toolResponse of content) {
|
|
120
|
+
if (toolResponse.type === "tool-approval-response") {
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
120
123
|
const output = toolResponse.output;
|
|
121
124
|
let contentValue;
|
|
122
125
|
switch (output.type) {
|
|
@@ -885,6 +888,9 @@ async function convertToXaiResponsesInput({
|
|
|
885
888
|
}
|
|
886
889
|
case "tool": {
|
|
887
890
|
for (const part of message.content) {
|
|
891
|
+
if (part.type === "tool-approval-response") {
|
|
892
|
+
continue;
|
|
893
|
+
}
|
|
888
894
|
const output = part.output;
|
|
889
895
|
let outputValue;
|
|
890
896
|
switch (output.type) {
|
|
@@ -2022,7 +2028,7 @@ var xaiTools = {
|
|
|
2022
2028
|
};
|
|
2023
2029
|
|
|
2024
2030
|
// src/version.ts
|
|
2025
|
-
var VERSION = true ? "3.0.0-beta.
|
|
2031
|
+
var VERSION = true ? "3.0.0-beta.69" : "0.0.0-test";
|
|
2026
2032
|
|
|
2027
2033
|
// src/xai-provider.ts
|
|
2028
2034
|
var xaiErrorStructure = {
|