@gullabs/xai 0.4.0 → 0.4.1
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/README.md +2 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -5,10 +5,10 @@ xAI Grok provider adapter for any-llm. A thin mapping layer over the `openai` np
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
pnpm add @gullabs/xai @gullabs/core openai
|
|
8
|
+
pnpm add @gullabs/xai @gullabs/core openai # peer: openai ^6 || ^7
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
**Peer dependency:** `openai ^6`
|
|
11
|
+
**Peer dependency:** `openai ^6 || ^7`
|
|
12
12
|
|
|
13
13
|
xAI has no first-party TypeScript SDK. xAI's own quickstart recommends using the `openai` npm package with a `baseURL` override pointed at xAI's endpoint — that is the path this adapter takes. `buildXaiClient` is the only place in `packages/xai/src` that imports `openai`, so the rest of the adapter (and its tests) stay decoupled from the real SDK via the structural `XaiClientLike` interface.
|
|
14
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gullabs/xai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "xAI Grok provider adapter for any-llm — Responses API, reasoning, structured output, vision.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"@gullabs/core": "0.11.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"openai": "^6"
|
|
30
|
+
"openai": "^6 || ^7"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"openai": "^
|
|
33
|
+
"openai": "^7.4.0",
|
|
34
34
|
"@gullabs/testing": "0.5.0"
|
|
35
35
|
},
|
|
36
36
|
"engines": {
|