pi-freeflow 1.4.11 → 1.4.12
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 +1 -1
- package/src/catalog.ts +1 -2
- package/src/proxy.ts +3 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-freeflow",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
4
|
+
"version": "1.4.12",
|
|
5
5
|
"description": "Thin provider for OMP/Pi — model list + dumb relay proxy + log; host pi-ai owns thinking/normalization",
|
|
6
6
|
"main": "extensions/index.ts",
|
|
7
7
|
"types": "src/index.ts",
|
package/src/catalog.ts
CHANGED
|
@@ -34,8 +34,7 @@ import type {
|
|
|
34
34
|
/**
|
|
35
35
|
* Pruned model IDs that must never re-enter the catalog via disk cache or upstream merge.
|
|
36
36
|
*/
|
|
37
|
-
const DEAD_MODEL_IDS = new Set<string>(["deepseek-v4-flash-free", "x-preview-f-free"]);
|
|
38
|
-
|
|
37
|
+
export const DEAD_MODEL_IDS = new Set<string>(["deepseek-v4-flash-free", "x-preview-f-free"]);
|
|
39
38
|
/**
|
|
40
39
|
* In-memory cache of currently active/available free models.
|
|
41
40
|
* Initialized with all 21 verified models for 0ms instant availability.
|
package/src/proxy.ts
CHANGED
|
@@ -475,10 +475,12 @@ export function startProxy(
|
|
|
475
475
|
log("error", "server error", { code: err.code, message: err.message });
|
|
476
476
|
reject(err);
|
|
477
477
|
});
|
|
478
|
-
|
|
479
478
|
server.listen(port, HOST, () => {
|
|
480
479
|
if (settled) return;
|
|
481
480
|
settled = true;
|
|
481
|
+
try {
|
|
482
|
+
server.unref();
|
|
483
|
+
} catch {}
|
|
482
484
|
const addr = server.address();
|
|
483
485
|
const realPort = addr && typeof addr === "object" ? addr.port : port;
|
|
484
486
|
log("info", `proxy listening on http://${HOST}:${realPort}`);
|