@bernierllc/openai-client 1.0.3 → 1.0.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.
- package/README.md +11 -7
- package/package.json +18 -14
package/README.md
CHANGED
|
@@ -259,17 +259,21 @@ if (result.success) {
|
|
|
259
259
|
}
|
|
260
260
|
```
|
|
261
261
|
|
|
262
|
-
## Integration
|
|
262
|
+
## Integration Status
|
|
263
263
|
|
|
264
264
|
### Logger Integration
|
|
265
|
+
**Status**: Integrated
|
|
265
266
|
|
|
266
|
-
This package uses
|
|
267
|
+
**Justification**: This package uses `@bernierllc/logger` for structured logging of all AI operations. Logs include request/response metadata (model, tokens, cost), retry attempts and backoff delays, rate limit events, and error details to help with debugging and cost monitoring.
|
|
267
268
|
|
|
268
|
-
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
269
|
+
**Pattern**: Direct integration - logger is a required dependency for this package.
|
|
270
|
+
|
|
271
|
+
### NeverHub Integration
|
|
272
|
+
**Status**: Not applicable
|
|
273
|
+
|
|
274
|
+
**Justification**: This is a core AI client package that provides OpenAI API connectivity. It does not participate in service discovery, event publishing, or service mesh operations. AI clients are infrastructure utilities that don't require service registration or discovery.
|
|
275
|
+
|
|
276
|
+
**Pattern**: Core utility - no service mesh integration needed. Service-level packages that use this client can integrate with NeverHub if needed.
|
|
273
277
|
|
|
274
278
|
### Retry Policy Integration
|
|
275
279
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bernierllc/openai-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Type-safe OpenAI API client with automatic rate limiting, retry logic, streaming support, and cost tracking",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,16 +9,6 @@
|
|
|
9
9
|
"README.md",
|
|
10
10
|
"LICENSE"
|
|
11
11
|
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"dev": "tsc --watch",
|
|
15
|
-
"test": "jest",
|
|
16
|
-
"test:watch": "jest --watch",
|
|
17
|
-
"test:coverage": "jest --coverage",
|
|
18
|
-
"test:run": "jest --passWithNoTests",
|
|
19
|
-
"lint": "eslint src/**/*.ts",
|
|
20
|
-
"clean": "rimraf dist"
|
|
21
|
-
},
|
|
22
12
|
"keywords": [
|
|
23
13
|
"openai",
|
|
24
14
|
"gpt",
|
|
@@ -39,8 +29,8 @@
|
|
|
39
29
|
},
|
|
40
30
|
"dependencies": {
|
|
41
31
|
"openai": "^4.73.0",
|
|
42
|
-
"@bernierllc/logger": "
|
|
43
|
-
"@bernierllc/retry-policy": "
|
|
32
|
+
"@bernierllc/logger": "1.0.4",
|
|
33
|
+
"@bernierllc/retry-policy": "0.1.6"
|
|
44
34
|
},
|
|
45
35
|
"devDependencies": {
|
|
46
36
|
"@types/jest": "^29.5.14",
|
|
@@ -55,5 +45,19 @@
|
|
|
55
45
|
},
|
|
56
46
|
"engines": {
|
|
57
47
|
"node": ">=18.0.0"
|
|
48
|
+
},
|
|
49
|
+
"publishConfig": {
|
|
50
|
+
"access": "public",
|
|
51
|
+
"registry": "https://registry.npmjs.org/"
|
|
52
|
+
},
|
|
53
|
+
"scripts": {
|
|
54
|
+
"build": "tsc",
|
|
55
|
+
"dev": "tsc --watch",
|
|
56
|
+
"test": "jest",
|
|
57
|
+
"test:watch": "jest --watch",
|
|
58
|
+
"test:coverage": "jest --coverage",
|
|
59
|
+
"test:run": "jest --passWithNoTests",
|
|
60
|
+
"lint": "eslint src/**/*.ts",
|
|
61
|
+
"clean": "rimraf dist"
|
|
58
62
|
}
|
|
59
|
-
}
|
|
63
|
+
}
|