@argosvix/sdk 0.5.6 → 0.5.7
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 +9 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @argosvix/sdk
|
|
2
2
|
|
|
3
|
-
Transparent observability wrapper for AI provider SDKs. Wrap a single line of code and get cost, latency, token, and error records for every LLM call across OpenAI, Anthropic, Gemini, and
|
|
3
|
+
Transparent observability wrapper for AI provider SDKs. Wrap a single line of code and get cost, latency, token, and error records for every LLM call across OpenAI, Anthropic, Gemini, Mistral, xAI Grok, Moonshot Kimi, and DeepSeek.
|
|
4
4
|
|
|
5
5
|
> 🟢 **Alpha released** — backend ingest (`ingest.argosvix.com`) and dashboard (`dashboard.argosvix.com`) are live. Published on npm as `@argosvix/sdk`. The entire sign-up to API-key flow runs in the browser; a Free plan and paid plans (Pro / Team) are available.
|
|
6
6
|
>
|
|
@@ -19,12 +19,20 @@ Transparent observability wrapper for AI provider SDKs. Wrap a single line of co
|
|
|
19
19
|
| **Mistral** | ✅ | ✅ | `chat.complete` + `chat.stream` |
|
|
20
20
|
| **Gemini legacy** (`@google/generative-ai`) | ✅ | ✅ | `getGenerativeModel({...}).generateContent` / `generateContentStream` |
|
|
21
21
|
| **Gemini current** (`@google/genai`) | ✅ | ✅ | `client.models.generateContent` / `generateContentStream` |
|
|
22
|
+
| **xAI Grok** | ✅ | ✅ | Through the OpenAI-compatible endpoint. Detected from `baseURL` (`api.x.ai`), or set `provider: "xai"` explicitly |
|
|
23
|
+
| **Moonshot Kimi** | ✅ | ✅ | Through the OpenAI-compatible endpoint. Detected from `baseURL` (`api.moonshot.ai` / `.cn`), or set `provider: "moonshot"` |
|
|
24
|
+
| **DeepSeek** | ✅ | ✅ | Through the OpenAI-compatible endpoint. Detected from `baseURL` (`api.deepseek.com`), or set `provider: "deepseek"` |
|
|
25
|
+
|
|
26
|
+
Grok, Kimi, and DeepSeek reuse the OpenAI wrapper because they serve an
|
|
27
|
+
OpenAI-compatible API. You wrap the same `OpenAI` client you already have; the
|
|
28
|
+
record carries the real provider so cost is priced with that provider's rates.
|
|
22
29
|
|
|
23
30
|
## Install
|
|
24
31
|
|
|
25
32
|
```bash
|
|
26
33
|
npm install @argosvix/sdk openai
|
|
27
34
|
# Also install the SDKs for any other providers you use (Anthropic, Gemini, Mistral).
|
|
35
|
+
# Grok / Kimi / DeepSeek need no extra SDK — they use the OpenAI client.
|
|
28
36
|
```
|
|
29
37
|
|
|
30
38
|
### Obtain an API key
|
package/dist/version.d.ts
CHANGED
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* 2. Update `version` in packages/sdk/package.json to the same value
|
|
11
11
|
* 3. Verify npm run build && tests pass before committing
|
|
12
12
|
*/
|
|
13
|
-
export declare const SDK_VERSION: "0.5.
|
|
13
|
+
export declare const SDK_VERSION: "0.5.7";
|
|
14
14
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@argosvix/sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "Drop-in observability wrapper for OpenAI, Anthropic, Gemini, Mistral SDK clients. One-line wrap() = cost / latency / quality records.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"argosvix",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"pack:dry": "npm pack --dry-run"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@anthropic-ai/sdk": "
|
|
57
|
+
"@anthropic-ai/sdk": "^0.115.0",
|
|
58
|
+
"@google/genai": "^2.13.0",
|
|
58
59
|
"@google/generative-ai": ">=0.20.0",
|
|
59
|
-
"@google/genai": ">=2.0.0",
|
|
60
60
|
"@mistralai/mistralai": ">=1.0.0",
|
|
61
61
|
"openai": ">=4.0.0"
|
|
62
62
|
},
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"@types/node": "^22.19.19",
|
|
85
85
|
"openai": "^4.0.0",
|
|
86
86
|
"typescript": "^5.6.0",
|
|
87
|
-
"vitest": "^2.
|
|
87
|
+
"vitest": "^3.2.6"
|
|
88
88
|
}
|
|
89
89
|
}
|