@apicity/xai 0.6.4 → 0.6.6

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.
Files changed (2) hide show
  1. package/README.md +16 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -143,7 +143,7 @@ console.log(result.usage);
143
143
 
144
144
  ## API Reference
145
145
 
146
- 47 endpoints across 18 groups. Each method mirrors an upstream URL path.
146
+ 48 endpoints across 18 groups. Each method mirrors an upstream URL path.
147
147
 
148
148
  ### apiKey
149
149
 
@@ -741,6 +741,21 @@ Source: [`packages/provider/xai/src/xai.ts`](src/xai.ts)
741
741
 
742
742
  </details>
743
743
 
744
+ <details>
745
+ <summary><code>POST</code> <b><code>xai.v1.responses.compact</code></b></summary>
746
+
747
+ <code>POST https://api.x.ai/v1/responses/compact</code>
748
+
749
+ [Upstream docs ↗](https://docs.x.ai/docs/api-reference)
750
+
751
+ ```typescript
752
+ const res = await xai.v1.responses.compact({ /* ... */ });
753
+ ```
754
+
755
+ Source: [`packages/provider/xai/src/xai.ts`](src/xai.ts)
756
+
757
+ </details>
758
+
744
759
  ### stt
745
760
 
746
761
  <details>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apicity/xai",
3
- "version": "0.6.4",
3
+ "version": "0.6.6",
4
4
  "description": "X.AI / Grok provider for chat and search.",
5
5
  "license": "MIT",
6
6
  "repository": {