fix(omp): avoid unsupported calculateCost import

Fix OMP installation by removing the unsupported calculateCost runtime import from pi-ai.
This commit is contained in:
Patrick Wozniak
2026-07-05 03:10:02 +02:00
committed by GitHub
parent 0f6fc17816
commit e123e84116
7 changed files with 135 additions and 4 deletions
+3 -2
View File
@@ -28,7 +28,7 @@
"LICENSE"
],
"scripts": {
"test": "npm run typecheck && tsx tests/test-pure-functions.ts && tsx tests/test-models.ts && tsx tests/test-pricing.ts && tsx tests/test-oauth.ts && tsx tests/test-abort.ts && tsx tests/test-stream.ts && tsx tests/test-retry.ts && node tests/test-pi-local.mjs && node tests/test-omp-compat.mjs",
"test": "npm run typecheck && tsx tests/test-pure-functions.ts && tsx tests/test-models.ts && tsx tests/test-pricing.ts && tsx tests/test-cost.ts && tsx tests/test-oauth.ts && tsx tests/test-abort.ts && tsx tests/test-stream.ts && tsx tests/test-retry.ts && node tests/test-pi-local.mjs && node tests/test-omp-compat.mjs",
"typecheck": "tsc --noEmit",
"format:check": "prettier --check '**/*.{ts,mjs,json,md}'",
"format": "prettier --write '**/*.{ts,mjs,json,md}'",
@@ -40,7 +40,8 @@
"test:stream": "tsx tests/test-stream.ts",
"test:retry": "tsx tests/test-retry.ts",
"test:pi-local": "node tests/test-pi-local.mjs",
"test:smoke": "node tests/test-smoke.mjs"
"test:smoke": "node tests/test-smoke.mjs",
"test:cost": "tsx tests/test-cost.ts"
},
"pi": {
"extensions": [