{"_id":"@rocketnew/llm-sdk","_rev":"9-b2938d41b9199634abddc655a1b064a8","name":"@rocketnew/llm-sdk","dist-tags":{"next":"1.2.0-next.30","latest":"1.2.1"},"versions":{"1.0.0":{"name":"@rocketnew/llm-sdk","version":"1.0.0","keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"author":{"name":"Rocket Team"},"license":"MIT","_id":"@rocketnew/llm-sdk@1.0.0","maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"homepage":"https://gitlab.dhiwise.com/dhi-playground/rocket-llm-ts-sdk","bugs":{"url":"https://gitlab.dhiwise.com/dhi-playground/rocket-llm-ts-sdk/-/issues"},"dist":{"shasum":"46290987a0d81757dfe04a23a84e93b9ec136d8d","tarball":"https://registry.npmjs.org/@rocketnew/llm-sdk/-/llm-sdk-1.0.0.tgz","fileCount":6,"integrity":"sha512-uMpMpIWjKJYgUgF7y3fVcT/BU5iYinHjy8dUGBde9dZDHOARnbtDV5Nk1hHoTb9qvpdyNhdrCqsa71D8AK5yzg==","signatures":[{"sig":"MEUCIA8Kl6DFYW30gQbMNUtLFW0f0eu29D8uNj1x7oNaLaHGAiEA0ENDdIepGInPp+kccNE+eQGuvH7Cq3XZu09AF4UvBgU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2872024},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=16"},"gitHead":"7a3e204afffbb55903395eacf831aeca0be18c1a","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"npm run test:unit && npm run test:integration:fast","build":"tsup src/index.ts --format cjs,esm --dts --clean","prepare":"npm run build","test:ui":"vitest --ui","test:unit":"vitest run tests/test_rocketllm","proxy:test":"tsx examples/test-proxy-routing.ts","test:watch":"vitest","type-check":"tsc --noEmit","proxy:start":"node test-proxy-server.js","test:images":"vitest run tests/local_testing/test_openai_image_generation.test.ts --testTimeout=120000","prepublishOnly":"npm test && npm run build","test:integration":"vitest run tests/local_testing --testTimeout=120000","test:integration:fast":"vitest run tests/local_testing/test_anthropic_completion.test.ts tests/local_testing/test_openai_completion.test.ts"},"_npmUser":{"name":"rocketnew","email":"masteraccounts@rocket.new"},"repository":{"url":"https://gitlab.dhiwise.com/dhi-playground/rocket-llm-ts-sdk.git","type":"git"},"_npmVersion":"11.6.0","description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tsup":"^8.0.1","openai":"^6.15.0","typescript":"^5.3.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","dotenv":"^17.2.3","vitest":"^1.2.0","express":"^4.22.1","@vitest/ui":"^1.2.0","@types/node":"^20.10.0","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_1.0.0_1767781902269_0.8774322995723829","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@rocketnew/llm-sdk","version":"1.0.1","keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"author":{"name":"Rocket Team"},"license":"MIT","_id":"@rocketnew/llm-sdk@1.0.1","maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"dist":{"shasum":"2277f27d3c41d0ee982c556c3061b4fb8a25e1c0","tarball":"https://registry.npmjs.org/@rocketnew/llm-sdk/-/llm-sdk-1.0.1.tgz","fileCount":6,"integrity":"sha512-wWjaXWYo+1OHyOBBnjW9/rp/OBH0rtoDqxEDEN/FUgcsoCMVPgjc2cOD7lKunCchN6c8fyIhrSxO40TZb75+mA==","signatures":[{"sig":"MEUCICtGIwW1n3X9lsEiWWHkoFuavgHq7GxaSOacWu0zXomcAiEAvWJfrwWS5fMOYSV2y7Bn+QbWvwYm85FKgv9MHGH7TiQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2871674},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=16"},"gitHead":"147b597264295f93ea26685eea3c765ce7a8b852","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"npm run test:unit && npm run test:integration:fast","build":"tsup src/index.ts --format cjs,esm --dts --clean","prepare":"npm run build","test:ui":"vitest --ui","test:unit":"vitest run tests/test_rocketllm","proxy:test":"tsx examples/test-proxy-routing.ts","test:watch":"vitest","type-check":"tsc --noEmit","proxy:start":"node test-proxy-server.js","test:images":"vitest run tests/local_testing/test_openai_image_generation.test.ts --testTimeout=120000","prepublishOnly":"npm test && npm run build","test:integration":"vitest run tests/local_testing --testTimeout=120000","test:integration:fast":"vitest run tests/local_testing/test_anthropic_completion.test.ts tests/local_testing/test_openai_completion.test.ts"},"_npmUser":{"name":"rocketnew","email":"masteraccounts@rocket.new"},"_npmVersion":"11.6.0","description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tsup":"^8.0.1","openai":"^6.15.0","typescript":"^5.3.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","dotenv":"^17.2.3","vitest":"^1.2.0","express":"^4.22.1","@vitest/ui":"^1.2.0","@types/node":"^20.10.0","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_1.0.1_1767782847451_0.5890828509108976","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@rocketnew/llm-sdk","version":"1.0.2","keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"author":{"name":"Rocket Team"},"license":"MIT","_id":"@rocketnew/llm-sdk@1.0.2","maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"dist":{"shasum":"43b760fad90156a7032736e807a3c66e76535f8e","tarball":"https://registry.npmjs.org/@rocketnew/llm-sdk/-/llm-sdk-1.0.2.tgz","fileCount":6,"integrity":"sha512-yboOhnCWHfDHwd5jnXj968qoF6mIXfUHGdQhrQcHSwBrdTA5CVvecToflj6Jyh3Kz7+LTsky83FTG2Qq3Lzbqg==","signatures":[{"sig":"MEUCIGA/SeIANRj/WPq6ptd3n7qmqhPpojGxsP4Jfe0QOa59AiEA0m0UzCZ7pTppiLpCocbj0gtKiV5GKVW1O8Z8XJfvMQ4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2954134},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=16"},"gitHead":"7115e7b96bac58f67c9733cb0978d3ffb5bb58bf","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"npm run test:unit && npm run test:integration:fast","build":"tsup src/index.ts --format cjs,esm --dts --clean","prepare":"npm run build","test:ui":"vitest --ui","test:unit":"vitest run tests/test_rocketllm","proxy:test":"tsx examples/test-proxy-routing.ts","test:watch":"vitest","type-check":"tsc --noEmit","proxy:start":"node test-proxy-server.js","test:images":"vitest run tests/local_testing/test_openai_image_generation.test.ts --testTimeout=120000","prepublishOnly":"npm test && npm run build","test:integration":"vitest run tests/local_testing --testTimeout=120000","test:integration:fast":"vitest run tests/local_testing/test_anthropic_completion.test.ts tests/local_testing/test_openai_completion.test.ts"},"_npmUser":{"name":"rocketnew","email":"masteraccounts@rocket.new"},"_npmVersion":"11.6.0","description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tsup":"^8.0.1","openai":"^6.15.0","typescript":"^5.3.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","dotenv":"^17.2.3","vitest":"^1.2.0","express":"^4.22.1","@vitest/ui":"^1.2.0","@types/node":"^20.10.0","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_1.0.2_1768542991224_0.8513535431711601","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@rocketnew/llm-sdk","version":"1.0.3","keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"author":{"name":"Rocket Team"},"license":"MIT","_id":"@rocketnew/llm-sdk@1.0.3","maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"dist":{"shasum":"f60c76d76ce5a9e24e57e66c90e13ed3f2431754","tarball":"https://registry.npmjs.org/@rocketnew/llm-sdk/-/llm-sdk-1.0.3.tgz","fileCount":6,"integrity":"sha512-Vk63mL3w43INbScbZ6GccjmKcuQvzj+DPlSYmmBsPwPwDJYghhdTsTsC3MEOXfGzht2Qes5diyfC5UvSiHtfzw==","signatures":[{"sig":"MEUCIQDH6sozziCE20JSIQO7pCIDFsNP+JDyGF/q9wHcOyqDcgIgK12YfaYlbjuyIQN8FdLcCy+Skslpk647+MOKYawN79A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3005990},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=16"},"gitHead":"8aedb9ca5fc23b8ae04b19da75bac7392e34e5be","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"npm run test:unit && npm run test:integration:fast","build":"tsup src/index.ts --format cjs,esm --dts --clean","prepare":"npm run build","test:ui":"vitest --ui","test:unit":"vitest run tests/test_rocketllm","proxy:test":"tsx examples/test-proxy-routing.ts","test:watch":"vitest","type-check":"tsc --noEmit","proxy:start":"node test-proxy-server.js","test:images":"vitest run tests/local_testing/test_openai_image_generation.test.ts --testTimeout=120000","prepublishOnly":"npm test && npm run build","test:integration":"vitest run tests/local_testing --testTimeout=120000","test:integration:fast":"vitest run tests/local_testing/test_anthropic_completion.test.ts tests/local_testing/test_openai_completion.test.ts"},"_npmUser":{"name":"rocketnew","email":"masteraccounts@rocket.new"},"_npmVersion":"11.6.0","description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tsup":"^8.0.1","openai":"^6.15.0","typescript":"^5.3.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","dotenv":"^17.2.3","vitest":"^1.2.0","express":"^4.22.1","@vitest/ui":"^1.2.0","@types/node":"^20.10.0","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_1.0.3_1769489982737_0.43483991477343875","host":"s3://npm-registry-packages-npm-production"}},"1.1.0-next.20":{"name":"@rocketnew/llm-sdk","version":"1.1.0-next.20","keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"author":{"name":"Rocket Team"},"license":"MIT","_id":"@rocketnew/llm-sdk@1.1.0-next.20","maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"dist":{"shasum":"d0c67f72f16ab42259d82760fbcfe5396a22761a","tarball":"https://registry.npmjs.org/@rocketnew/llm-sdk/-/llm-sdk-1.1.0-next.20.tgz","fileCount":17,"integrity":"sha512-nDeIvduLyk+elAYH/8RZaeqhSankVE3Au2/Tubqbt+i7ASKxlp/MANyIoicdc49oULnctjNv+XHBB64xGBxpQA==","signatures":[{"sig":"MEQCIB1WAVqlKhTz3X2z5XHlqjNJisoNHhLdK/hpSsqTXcQ8AiBGWqmXVyAKjls1oRJFXfas9ggZuGUisLvyhpMJnWlLZw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3836523},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20"},"gitHead":"5098b633cc0466776e406dec971030a87d019afc","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"npm run test:unit && npm run test:integration:fast","build":"tsup src/index.ts --format cjs,esm --dts --clean","prepare":"npm run build","test:ui":"vitest --ui","test:unit":"vitest run tests/test_rocketllm","proxy:test":"tsx examples/test-proxy-routing.ts","test:watch":"vitest","type-check":"tsc --noEmit","proxy:start":"node test-proxy-server.js","test:images":"vitest run tests/local_testing/test_openai_image_generation.test.ts --testTimeout=120000","prepublishOnly":"npm run test:unit && npm run build","test:integration":"vitest run tests/local_testing --testTimeout=120000","test:integration:fast":"vitest run tests/local_testing/test_anthropic_completion.test.ts tests/local_testing/test_openai_completion.test.ts"},"_npmUser":{"name":"rocketnew","email":"masteraccounts@rocket.new"},"_npmVersion":"11.6.0","description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tsup":"^8.0.1","openai":"^6.15.0","typescript":"^5.3.3"},"publishConfig":{"tag":"latest","access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"^4.21.0","dotenv":"^17.2.3","semver":"^7.7.4","vitest":"^1.2.0","express":"^4.22.1","@vitest/ui":"^1.2.0","@types/node":"^20.10.0","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_1.1.0-next.20_1777352530428_0.9916661641145341","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@rocketnew/llm-sdk","version":"1.1.0","keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"author":{"name":"Rocket Team"},"license":"MIT","_id":"@rocketnew/llm-sdk@1.1.0","maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"dist":{"shasum":"a82f4a4ab8e7d6f8ce6cfbe6f1ee6147ebf49ce4","tarball":"https://registry.npmjs.org/@rocketnew/llm-sdk/-/llm-sdk-1.1.0.tgz","fileCount":17,"integrity":"sha512-RoxqRtlXIeEajQUrGX2+VaaHSQQmiDpzKHt3naKGjAf1rwPQyu6SgzTzXMLPuVR8mFYr0pI29vIj0tTaRndVZQ==","signatures":[{"sig":"MEQCIAxm3XaAar3H3lzewF8Z6R4O6ES7Pj5xD5v/8JFxKTfnAiB4t/fvnisuVgJ9RTcZbTal+i6M8GJbGmHdjsZN94l+Ow==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3838457},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20"},"gitHead":"2280284967b8991a311b0e0c5174c5146c90605b","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"npm run test:unit && npm run test:integration:fast","build":"tsup src/index.ts --format cjs,esm --dts --clean","prepare":"npm run build","test:ui":"vitest --ui","test:unit":"vitest run tests/test_rocketllm","proxy:test":"tsx examples/test-proxy-routing.ts","test:watch":"vitest","type-check":"tsc --noEmit","proxy:start":"node test-proxy-server.js","test:images":"vitest run tests/local_testing/test_openai_image_generation.test.ts --testTimeout=120000","prepublishOnly":"npm run test:unit && npm run build","test:integration":"vitest run tests/local_testing --testTimeout=120000","test:integration:fast":"vitest run tests/local_testing/test_anthropic_completion.test.ts tests/local_testing/test_openai_completion.test.ts"},"_npmUser":{"name":"rocketnew","email":"masteraccounts@rocket.new"},"_npmVersion":"11.6.0","description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","directories":{},"_nodeVersion":"20.18.1","dependencies":{"tsup":"^8.0.1","openai":"^6.15.0","typescript":"^5.3.3"},"publishConfig":{"tag":"latest","access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","dotenv":"^17.2.3","semver":"^7.7.4","vitest":"^1.2.0","express":"^4.22.1","@vitest/ui":"^1.2.0","@types/node":"^20.10.0","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_1.1.0_1777877831929_0.9695596300718097","host":"s3://npm-registry-packages-npm-production"}},"1.2.0-next.30":{"name":"@rocketnew/llm-sdk","version":"1.2.0-next.30","keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"author":{"name":"Rocket Team"},"license":"MIT","_id":"@rocketnew/llm-sdk@1.2.0-next.30","maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"dist":{"shasum":"ab790616780e9a61c1a781f70db6a8dd3cd1db67","tarball":"https://registry.npmjs.org/@rocketnew/llm-sdk/-/llm-sdk-1.2.0-next.30.tgz","fileCount":17,"integrity":"sha512-V9pA49AfnpnreqgZKaCwffTX239rbpreG7cTwIqGGnxZf+wNX74lfBeOG+K3ZqeAzKtKCAqxyu0OzULLI1rLNg==","signatures":[{"sig":"MEYCIQCHJam3sJukem4x2nZS0x9ekE+bboW7XUY+p7b2RtXLggIhAL2S1H8LRWm+AZBiDfpif82MXiS5NTNLL213U3+Df6eK","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5200400},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20"},"gitHead":"20d59806637315e3871c806b3fa3b52d6dcdc777","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"npm run test:unit && npm run test:integration:fast","build":"tsup src/index.ts --format cjs,esm --dts --clean","prepare":"npm run build","test:ui":"vitest --ui","test:unit":"vitest run tests/test_rocketllm","proxy:test":"tsx examples/test-proxy-routing.ts","test:watch":"vitest","type-check":"tsc --noEmit","proxy:start":"node test-proxy-server.js","test:images":"vitest run tests/local_testing/test_openai_image_generation.test.ts --testTimeout=120000","prepublishOnly":"npm run test:unit && npm run build","test:integration":"vitest run tests/local_testing --testTimeout=120000","test:integration:fast":"vitest run tests/local_testing/test_anthropic_completion.test.ts tests/local_testing/test_openai_completion.test.ts"},"_npmUser":{"name":"rocketnew","email":"masteraccounts@rocket.new"},"_npmVersion":"10.9.8","description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","directories":{},"_nodeVersion":"22.23.1","dependencies":{"tsup":"^8.0.1","openai":"^6.15.0","typescript":"^5.3.3"},"publishConfig":{"tag":"latest","access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsx":"^4.21.0","dotenv":"^17.2.3","semver":"^7.7.4","vitest":"^1.2.0","express":"^4.22.1","@vitest/ui":"^1.2.0","@types/node":"^20.10.0","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_1.2.0-next.30_1788780330905_0.2210551364497666","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@rocketnew/llm-sdk","version":"1.2.0","keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"author":{"name":"Rocket Team"},"license":"MIT","_id":"@rocketnew/llm-sdk@1.2.0","maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"dist":{"shasum":"1c678fe51d45798323aba904b55f9d95cda3d355","tarball":"https://registry.npmjs.org/@rocketnew/llm-sdk/-/llm-sdk-1.2.0.tgz","fileCount":17,"integrity":"sha512-fSHFYPMm22cQSO5fMdvbEtJkgtwaEw/NwjQ5PBNCLY7qX25spOLpfUrHpf4LeJAx6P1MM5Cictt5uj8jFMbpQw==","signatures":[{"sig":"MEYCIQCvofEbq1ayYGPybAm1+Ia4dLfoHHc/KRlDJrjxccmB2gIhAMkiRBhyY2oCRINkobxG0QnMWN7u2oapBXxj9kgZ7G0+","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5200392},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=20"},"gitHead":"22689a4d12071d4966ebf60df2781d7ef1281d26","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","test":"npm run test:unit && npm run test:integration:fast","build":"tsup src/index.ts --format cjs,esm --dts --clean","prepare":"npm run build","test:ui":"vitest --ui","test:unit":"vitest run tests/test_rocketllm","proxy:test":"tsx examples/test-proxy-routing.ts","test:watch":"vitest","type-check":"tsc --noEmit","proxy:start":"node test-proxy-server.js","test:images":"vitest run tests/local_testing/test_openai_image_generation.test.ts --testTimeout=120000","prepublishOnly":"npm run test:unit && npm run build","test:integration":"vitest run tests/local_testing --testTimeout=120000","test:integration:fast":"vitest run tests/local_testing/test_anthropic_completion.test.ts tests/local_testing/test_openai_completion.test.ts"},"_npmUser":{"name":"rocketnew","email":"masteraccounts@rocket.new"},"_npmVersion":"10.9.8","description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","directories":{},"_nodeVersion":"22.23.1","dependencies":{"tsup":"^8.0.1","openai":"^6.15.0","typescript":"^5.3.3"},"publishConfig":{"tag":"latest","access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","dotenv":"^17.2.3","semver":"^7.7.4","vitest":"^1.2.0","express":"^4.22.1","@vitest/ui":"^1.2.0","@types/node":"^20.10.0","@types/express":"^5.0.6"},"_npmOperationalInternal":{"tmp":"tmp/llm-sdk_1.2.0_1788849727215_0.3050992125908232","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@rocketnew/llm-sdk","version":"1.2.1","description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","scripts":{"build":"tsup src/index.ts --format cjs,esm --dts --clean","prepare":"npm run build","dev":"tsup src/index.ts --format cjs,esm --dts --watch","type-check":"tsc --noEmit","test":"npm run test:unit && npm run test:integration:fast","test:watch":"vitest","test:ui":"vitest --ui","test:integration":"vitest run tests/local_testing --testTimeout=120000","test:integration:fast":"vitest run tests/local_testing/test_anthropic_completion.test.ts tests/local_testing/test_openai_completion.test.ts","test:unit":"vitest run tests/test_rocketllm","test:images":"vitest run tests/local_testing/test_openai_image_generation.test.ts --testTimeout=120000","prepublishOnly":"npm run test:unit && npm run build","proxy:start":"node test-proxy-server.js","proxy:test":"tsx examples/test-proxy-routing.ts"},"keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"author":{"name":"Rocket Team"},"license":"MIT","publishConfig":{"access":"public","tag":"latest"},"devDependencies":{"@types/express":"^5.0.6","@types/node":"^20.10.0","@vitest/ui":"^1.2.0","dotenv":"^17.2.3","express":"^4.22.1","semver":"^7.7.4","tsx":"^4.21.0","vitest":"^1.2.0"},"dependencies":{"openai":"^6.15.0","tsup":"^8.0.1","typescript":"^5.3.3"},"engines":{"node":">=20"},"_id":"@rocketnew/llm-sdk@1.2.1","gitHead":"e97a0272216b515c27c0a1a1c1b8b77145e49e18","_nodeVersion":"22.23.1","_npmVersion":"10.9.8","dist":{"integrity":"sha512-JT1Ua9f+LIcWDQNKxtZNoiwQ8Qwkc7H068DHo5DbmC93rXAYeiLvl6jZwaDkeamszyt7Za0fWzzBlDX0DslzDA==","shasum":"cc9a2f74de674c07062ee2baf17cd8106709a9a9","tarball":"https://registry.npmjs.org/@rocketnew/llm-sdk/-/llm-sdk-1.2.1.tgz","fileCount":17,"unpackedSize":5205802,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDcz/10LEweMaM7CveShGo4JgPfol7kawcrXh8IyoxXXgIhAOmcSWN5FM/sdO8EOm64SfZ4k/TXJK2O+lhzzKd96mVW"}]},"_npmUser":{"name":"rocketnew","email":"masteraccounts@rocket.new"},"directories":{},"maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/llm-sdk_1.2.1_1788869327671_0.9672682473812524"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-07T10:31:42.168Z","modified":"2026-09-08T12:08:48.045Z","1.0.0":"2026-01-07T10:31:42.493Z","1.0.1":"2026-01-07T10:47:27.613Z","1.0.2":"2026-01-16T05:56:31.411Z","1.0.3":"2026-01-27T04:59:43.031Z","1.1.0-next.20":"2026-04-28T05:02:10.591Z","1.1.0":"2026-05-04T06:57:12.098Z","1.2.0-next.30":"2026-09-07T11:25:31.060Z","1.2.0":"2026-09-08T06:42:07.393Z","1.2.1":"2026-09-08T12:08:47.878Z"},"author":{"name":"Rocket Team"},"license":"MIT","keywords":["rocketllm","litellm","llm","ai","anthropic","openai","gemini","perplexity","unified-api","claude","gpt","typescript","sdk","rocket"],"description":"Universal LLM SDK for JavaScript/TypeScript - OpenAI, Anthropic, Gemini, Perplexity and more","maintainers":[{"name":"rocketnew","email":"masteraccounts@rocket.new"}],"readme":"# RocketLLM TypeScript SDK\n\nUniversal LLM SDK for JavaScript/TypeScript.\n\n## Install\n\n```bash\nnpm install @rocketnew/llm-sdk\n```\n\n---\n\n## Chat Completion\n\n### OpenAI\n\n**Basic**\n```typescript\nimport { completion } from '@rocketnew/llm-sdk';\n\nconst response = await completion({\n  model: 'gpt-5.6',\n  messages: [{ role: 'user', content: 'Hello!' }]\n});\n```\n\n**Streaming**\n```typescript\nconst stream = await completion({\n  model: 'gpt-5.6',\n  messages: [{ role: 'user', content: 'Count to 5' }],\n  stream: true\n});\n\nfor await (const chunk of stream) {\n  process.stdout.write(chunk.choices[0]?.delta?.content || '');\n}\n```\n\n**Tool calling**\n```typescript\nconst response = await completion({\n  model: 'gpt-5.6',\n  messages: [{ role: 'user', content: 'What is the weather in Paris?' }],\n  tools: [{\n    type: 'function',\n    function: {\n      name: 'get_weather',\n      description: 'Get weather for a location',\n      parameters: {\n        type: 'object',\n        properties: {\n          location: { type: 'string' }\n        },\n        required: ['location']\n      }\n    }\n  }]\n});\n```\n\n**JSON mode**\n```typescript\nconst response = await completion({\n  model: 'gpt-5.6',\n  messages: [{ role: 'user', content: 'List 3 colors in JSON' }],\n  response_format: { type: 'json_object' }\n});\n```\n\n**Vision**\n```typescript\nconst response = await completion({\n  model: 'gpt-5.6',\n  messages: [{\n    role: 'user',\n    content: [\n      { type: 'text', text: 'Describe this image' },\n      { type: 'image_url', image_url: 'https://example.com/image.jpg' }\n    ]\n  }]\n});\n```\n\n### Image generation\n\n```typescript\nimport { imageGeneration } from '@rocketnew/llm-sdk';\n\nconst response = await imageGeneration({\n  model: 'gpt-image-2',\n  prompt: 'A photorealistic sunset over a mountain lake',\n  size: '1024x1024',\n  quality: 'high',\n  n: 1\n});\n\nconst b64 = response.data[0].b64_json;\n```\n\n### Image editing\n\n```typescript\nimport { imageEdit } from '@rocketnew/llm-sdk';\nimport * as fs from 'fs';\n\nconst response = await imageEdit({\n  model: 'gpt-image-2',\n  image: fs.readFileSync('source.png'),\n  prompt: 'Add a rainbow over the mountains',\n  size: '1024x1024'\n});\n```\n\n### Text-to-speech\n\n```typescript\nimport { speech } from '@rocketnew/llm-sdk';\n\nconst audio = await speech({\n  model: 'gpt-4o-mini-tts',\n  input: 'Hello from RocketLLM.',\n  voice: 'alloy',\n  response_format: 'mp3'\n});\n\n// Write the audio bytes to disk\nawait audio.writeToFile('hello.mp3');\n```\n\n### Speech-to-text\n\n```typescript\nimport { transcription } from '@rocketnew/llm-sdk';\nimport * as fs from 'fs';\n\nconst response = await transcription({\n  model: 'gpt-4o-transcribe',\n  file: fs.readFileSync('audio.mp3')\n});\n\nconsole.log(response.text);\n```\n\n---\n\n## Anthropic\n\n**Basic**\n```typescript\nconst response = await completion({\n  model: 'claude-sonnet-5',\n  messages: [{ role: 'user', content: 'Hello!' }]\n});\n```\n\n**Streaming**\n```typescript\nconst stream = await completion({\n  model: 'claude-sonnet-5',\n  messages: [{ role: 'user', content: 'Write a poem' }],\n  stream: true\n});\n\nfor await (const chunk of stream) {\n  process.stdout.write(chunk.choices[0]?.delta?.content || '');\n}\n```\n\n**Tool calling**\n```typescript\nconst response = await completion({\n  model: 'claude-sonnet-5',\n  messages: [{ role: 'user', content: 'Calculate 25 * 4' }],\n  tools: [{\n    type: 'function',\n    function: {\n      name: 'calculate',\n      parameters: {\n        type: 'object',\n        properties: {\n          operation: { type: 'string' },\n          a: { type: 'number' },\n          b: { type: 'number' }\n        }\n      }\n    }\n  }]\n});\n```\n\n**Extended thinking**\n```typescript\nconst response = await completion({\n  model: 'claude-sonnet-5',\n  messages: [{ role: 'user', content: 'Solve this complex problem...' }],\n  thinking: { type: 'enabled', budget_tokens: 2000 }\n});\n\nconsole.log(response.choices[0].message.thinking_blocks);\n```\n\n**Reasoning effort**\n```typescript\nconst response = await completion({\n  model: 'claude-sonnet-5',\n  messages: [{ role: 'user', content: 'Explain quantum computing' }],\n  reasoning_effort: 'high'\n});\n```\n\n**Web search**\n```typescript\nconst response = await completion({\n  model: 'claude-sonnet-5',\n  messages: [{ role: 'user', content: 'What are the latest AI news?' }],\n  web_search_options: {\n    search_context_size: 'medium'\n  }\n});\n```\n\n**JSON mode**\n```typescript\nconst response = await completion({\n  model: 'claude-sonnet-4-6',\n  messages: [{ role: 'user', content: 'List 3 colors' }],\n  response_format: { type: 'json_object' }\n});\n```\n\n---\n\n## Gemini\n\n### Chat completion\n\n**Basic**\n```typescript\nconst response = await completion({\n  model: 'gemini/gemini-3.7-flash',\n  messages: [{ role: 'user', content: 'Hello!' }]\n});\n```\n\n**Streaming**\n```typescript\nconst stream = await completion({\n  model: 'gemini/gemini-3.7-flash',\n  messages: [{ role: 'user', content: 'Explain AI' }],\n  stream: true\n});\n\nfor await (const chunk of stream) {\n  process.stdout.write(chunk.choices[0]?.delta?.content || '');\n}\n```\n\n**Tool calling**\n```typescript\nconst response = await completion({\n  model: 'gemini/gemini-3.7-flash',\n  messages: [{ role: 'user', content: 'Get weather for Tokyo' }],\n  tools: [{\n    type: 'function',\n    function: {\n      name: 'get_weather',\n      parameters: {\n        type: 'object',\n        properties: {\n          location: { type: 'string' }\n        }\n      }\n    }\n  }]\n});\n```\n\n**Vision**\n```typescript\nconst response = await completion({\n  model: 'gemini/gemini-3.7-flash',\n  messages: [{\n    role: 'user',\n    content: [\n      { type: 'text', text: 'What is in this image?' },\n      { type: 'image_url', image_url: 'https://example.com/photo.jpg' }\n    ]\n  }]\n});\n```\n\n**JSON mode**\n```typescript\nconst response = await completion({\n  model: 'gemini/gemini-3.7-flash',\n  messages: [{ role: 'user', content: 'List 3 countries' }],\n  response_format: { type: 'json_object' }\n});\n```\n\n### Image generation\n\n```typescript\nimport { imageGeneration } from '@rocketnew/llm-sdk';\n\nconst response = await imageGeneration({\n  model: 'gemini/gemini-3.1-flash-image',\n  prompt: 'A peaceful zen garden with cherry blossoms',\n  size: '1024x1024',\n  n: 1\n});\n```\n\n### Image editing\n\n```typescript\nimport { imageEdit } from '@rocketnew/llm-sdk';\nimport * as fs from 'fs';\n\nconst response = await imageEdit({\n  model: 'gemini/gemini-3.1-flash-image',\n  image: fs.readFileSync('source.png'),\n  prompt: 'Add falling cherry blossom petals',\n  size: '1024x1024'\n});\n```\n\n### Text-to-speech\n\n```typescript\nimport { speech } from '@rocketnew/llm-sdk';\n\nconst audio = await speech({\n  model: 'gemini/gemini-3.1-flash-tts-preview',\n  input: 'Hello from Gemini.',\n  voice: 'Kore'\n});\n\n// Gemini returns audio/wav\nawait audio.writeToFile('hello.wav');\n```\n\n---\n\n## Perplexity\n\n**Basic**\n```typescript\nconst response = await completion({\n  model: 'perplexity/sonar-pro',\n  messages: [{ role: 'user', content: 'What is TypeScript?' }]\n});\n```\n\n**Streaming**\n```typescript\nconst stream = await completion({\n  model: 'perplexity/sonar-pro',\n  messages: [{ role: 'user', content: 'Explain React' }],\n  stream: true\n});\n\nfor await (const chunk of stream) {\n  process.stdout.write(chunk.choices[0]?.delta?.content || '');\n}\n```\n\n**With citations**\n```typescript\nconst response = await completion({\n  model: 'perplexity/sonar-pro',\n  messages: [{ role: 'user', content: 'Latest AI developments?' }]\n});\n\n// Response content includes inline citations\nconsole.log(response.choices[0].message.content);\n```\n\n---\n\nMade by Rocket Team\n\n","readmeFilename":"README.md"}