wolverine-ai 3.7.5 → 3.7.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wolverine-ai",
3
- "version": "3.7.5",
3
+ "version": "3.7.6",
4
4
  "description": "Self-healing Node.js server framework powered by AI. Catches crashes, diagnoses errors, generates fixes, verifies, and restarts — automatically.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -42,13 +42,14 @@ function getClient(provider) {
42
42
 
43
43
  function _getWolverineClient() {
44
44
  if (!_wolverineClient) {
45
- // Wolverine inference: direct to GPU or via proxy
46
- // WOLVERINE_GPU_KEY = internal key for direct GPU access (llama.cpp --api-key)
47
- // WOLVERINE_API_KEY = user key for billed proxy access (api.wolverinenode.xyz)
45
+ // Wolverine inference: always route through billing proxy when API key is set.
46
+ // WOLVERINE_API_KEY = billed API key (credits deducted per call)
47
+ // WOLVERINE_GPU_KEY = direct GPU access (no billing, admin/internal only)
48
+ // Priority: API_KEY (billed) > GPU_KEY (direct) — billing is the default path
49
+ const apiKey = process.env.WOLVERINE_API_KEY || process.env.WOLVERINE_GPU_KEY || "none";
48
50
  const baseURL = process.env.WOLVERINE_INFERENCE_URL
49
51
  ? process.env.WOLVERINE_INFERENCE_URL + "/v1"
50
52
  : "https://api.wolverinenode.xyz/v1";
51
- const apiKey = process.env.WOLVERINE_GPU_KEY || process.env.WOLVERINE_API_KEY || "none";
52
53
  _wolverineClient = new OpenAI({ apiKey, baseURL });
53
54
  }
54
55
  return _wolverineClient;