tinfoil 0.7.2 → 0.8.0

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 +4 -4
  2. package/package.json +4 -1
package/README.md CHANGED
@@ -5,6 +5,10 @@
5
5
 
6
6
  A Node.js wrapper around the OpenAI client that verifies enclave attestation and certificate fingerprints when using Tinfoil inference.
7
7
 
8
+ ## Requirements
9
+
10
+ Node 20.18.1 and higher.
11
+
8
12
  ## Installation
9
13
 
10
14
  ```bash
@@ -54,10 +58,6 @@ npx ts-node main.ts
54
58
 
55
59
  The example demonstrates streaming chat completions with the Tinfoil API wrapper.
56
60
 
57
- ## Runtime Support
58
-
59
- Supports Node.js 18+, Deno, Bun, Cloudflare Workers, and more. Browser usage is disabled by default for security. See [OpenAI Node.js client](https://github.com/openai/openai-node) for complete runtime compatibility.
60
-
61
61
  ## API Documentation
62
62
 
63
63
  This library is a drop-in replacement for the official OpenAI Node.js client that can be used with Tinfoil. All methods and types are identical. See the [OpenAI client](https://github.com/openai/openai-node) for complete API usage and documentation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tinfoil",
3
- "version": "0.7.2",
3
+ "version": "0.8.0",
4
4
  "description": "Tinfoil secure OpenAI client wrapper",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,6 +27,9 @@
27
27
  ],
28
28
  "author": "Tinfoil",
29
29
  "license": "AGPL-3.0-or-later",
30
+ "engines": {
31
+ "node": ">=20.18.1"
32
+ },
30
33
  "dependencies": {
31
34
  "@ai-sdk/openai-compatible": "^1.0.10",
32
35
  "ai": "^5.0.19",