mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
This builds the model catalog from per-provider definitions and models.dev v2 data. It eplacer `generate-models.ts` with one `defineProvider()` file per built-in provider, shared model-family rules (Claude, GPT, DeepSeek, Kimi, Google), and source adapters. models.dev is read through its v2 API. Outputs and CLI flags are unchanged.
106 lines
2.6 KiB
JSON
106 lines
2.6 KiB
JSON
{
|
|
"name": "@earendil-works/pi-ai",
|
|
"version": "1.4.0",
|
|
"description": "Unified LLM API with automatic model discovery and provider configuration",
|
|
"type": "module",
|
|
"main": "./dist/index.js",
|
|
"types": "./dist/index.d.ts",
|
|
"sideEffects": [
|
|
"./dist/compat.js",
|
|
"./dist/images.js",
|
|
"./dist/providers/images/register-builtins.js"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js"
|
|
},
|
|
"./models": {
|
|
"types": "./dist/models.d.ts",
|
|
"import": "./dist/models.js"
|
|
},
|
|
"./compat": {
|
|
"types": "./dist/compat.d.ts",
|
|
"import": "./dist/compat.js"
|
|
},
|
|
"./providers/*": {
|
|
"types": "./dist/providers/*.d.ts",
|
|
"import": "./dist/providers/*.js"
|
|
},
|
|
"./api/*": {
|
|
"types": "./dist/api/*.d.ts",
|
|
"import": "./dist/api/*.js"
|
|
},
|
|
"./utils/*": {
|
|
"types": "./dist/utils/*.d.ts",
|
|
"import": "./dist/utils/*.js"
|
|
},
|
|
"./oauth": {
|
|
"types": "./dist/oauth.d.ts",
|
|
"import": "./dist/oauth.js"
|
|
},
|
|
"./bedrock-provider": {
|
|
"types": "./dist/bedrock-provider.d.ts",
|
|
"import": "./dist/bedrock-provider.js"
|
|
},
|
|
"./bun-oauth": {
|
|
"types": "./dist/bun-oauth.d.ts",
|
|
"import": "./dist/bun-oauth.js"
|
|
}
|
|
},
|
|
"bin": {
|
|
"pi-ai": "dist/cli.js"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"clean": "shx rm -rf dist",
|
|
"generate-models": "node catalog/generate.ts --strict",
|
|
"hydrate-model-data": "node catalog/generate.ts --strict --data-only",
|
|
"generate-model-catalog": "node catalog/generate.ts --strict --json-only --json-output ../../.artifacts/model-catalog",
|
|
"check:model-data": "node scripts/check-model-data.ts",
|
|
"build": "npm run generate-models && npm run build:offline",
|
|
"build:offline": "npm run check:model-data && tsc -p tsconfig.build.json && shx rm -rf dist/providers/data && shx cp -r src/providers/data dist/providers/data",
|
|
"test": "vitest --run",
|
|
"prepublishOnly": "npm run clean && npm run build"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "0.129.0",
|
|
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
|
"@earendil-works/pi-telemetry": "1.4.0",
|
|
"@google/genai": "2.21.0",
|
|
"@smithy/node-http-handler": "4.12.1",
|
|
"http-proxy-agent": "9.1.0",
|
|
"https-proxy-agent": "9.1.0",
|
|
"openai": "7.19.0",
|
|
"partial-json": "0.1.7",
|
|
"typebox": "1.3.27"
|
|
},
|
|
"keywords": [
|
|
"ai",
|
|
"llm",
|
|
"openai",
|
|
"anthropic",
|
|
"gemini",
|
|
"bedrock",
|
|
"unified",
|
|
"api"
|
|
],
|
|
"author": "Mario Zechner",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/earendil-works/pi.git",
|
|
"directory": "packages/ai"
|
|
},
|
|
"engines": {
|
|
"node": ">=22.19.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "22.19.19",
|
|
"canvas": "3.2.3",
|
|
"vitest": "4.1.12"
|
|
}
|
|
}
|