{"_id":"@agentix-e/nl2spel-openai","_rev":"8-2665a9f89ff9aea6d8967f55f840692a","name":"@agentix-e/nl2spel-openai","dist-tags":{"latest":"1.3.0"},"versions":{"0.0.0":{"name":"@agentix-e/nl2spel-openai","version":"0.0.0","keywords":["oidc","trusted-publishing","setup"],"_id":"@agentix-e/nl2spel-openai@0.0.0","maintainers":[{"name":"lambertyan","email":"853901691@qq.com"}],"dist":{"shasum":"5211e08270a8612dc0ef840b9dcfecf1b2ace4e4","tarball":"https://registry.npmjs.org/@agentix-e/nl2spel-openai/-/nl2spel-openai-0.0.0.tgz","fileCount":2,"integrity":"sha512-CMqAGzBz0oMg7zXduhkNMoEs7sU288CGR/FYnGE6x/k0z5/WB4fBj1sM1rPQrOab/7BPGGGZ5xOqpWaH0qA0aQ==","signatures":[{"sig":"MEUCIQDBG/fLX6Y/IYwz9V/6+yqleBrdu/zIGvC+z5Y7lCsA1gIgAlMNJZlwO20iJS+uOw2lklXrXrWfGRkd2wBx5/m/EXI=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2063},"_npmUser":{"name":"lambertyan","email":"853901691@qq.com"},"_npmVersion":"11.9.0","description":"OIDC trusted publishing setup package for @agentix-e/nl2spel-openai","directories":{},"_nodeVersion":"24.14.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/nl2spel-openai_0.0.0_1783775267971_0.039339852161976774","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@agentix-e/nl2spel-openai","version":"1.0.0","keywords":["spel","openai","llm","nlp","expression-language","agentix"],"author":{"name":"Agentix-E"},"license":"MIT","_id":"@agentix-e/nl2spel-openai@1.0.0","maintainers":[{"name":"lambertyan","email":"853901691@qq.com"}],"homepage":"https://github.com/AgentiX-E/nl2spel#readme","bugs":{"url":"https://github.com/AgentiX-E/nl2spel/issues"},"dist":{"shasum":"bb6fe56740cc6e2afecff53fa8418a14012fe998","tarball":"https://registry.npmjs.org/@agentix-e/nl2spel-openai/-/nl2spel-openai-1.0.0.tgz","fileCount":22,"integrity":"sha512-WwvzVsnLrqsJSyF6U8ZwbZs7TU6NlALjn8pu+Zlk9f7jbLGUOD2T+WavE4FIvoN4dHW94jG+3aPrfpZky91nbw==","signatures":[{"sig":"MEUCIQDSi5OHOScZnJAsvhZBjj0hzKYvPudpWIw61CAeI4t6lQIgFsZhthJD1lhw7yv9bDPrawhsk+fAgu8CLOmSATszfg0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentix-e%2fnl2spel-openai@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":101303},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"0fc107540aed379cf8084ee3a56689f5de647301","scripts":{"lint":"tsc --noEmit","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b81c47d7-5f25-481d-a0f1-937d50c045f5"}},"repository":{"url":"git+https://github.com/AgentiX-E/nl2spel.git","type":"git","directory":"packages/nl2spel-openai"},"_npmVersion":"11.16.0","description":"OpenAI-compatible LLM provider for @agentix-e/nl2spel","directories":{},"_nodeVersion":"24.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.8","typescript":"^5.7.3","@agentix-e/nl2spel":"workspace:*"},"peerDependencies":{"ai":"^4.0.0","@ai-sdk/openai":"^1.0.0","@agentix-e/nl2spel":"workspace:*"},"peerDependenciesMeta":{"ai":{"optional":false},"@ai-sdk/openai":{"optional":false}},"_npmOperationalInternal":{"tmp":"tmp/nl2spel-openai_1.0.0_1783818705368_0.49632473848783976","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@agentix-e/nl2spel-openai","version":"1.1.1","keywords":["spel","openai","llm","nlp","expression-language","agentix"],"author":{"name":"Agentix-E"},"license":"MIT","_id":"@agentix-e/nl2spel-openai@1.1.1","maintainers":[{"name":"lambertyan","email":"853901691@qq.com"}],"homepage":"https://github.com/AgentiX-E/nl2spel#readme","bugs":{"url":"https://github.com/AgentiX-E/nl2spel/issues"},"dist":{"shasum":"f274c34e76fb5341f9e7db7d3713e237450208c2","tarball":"https://registry.npmjs.org/@agentix-e/nl2spel-openai/-/nl2spel-openai-1.1.1.tgz","fileCount":22,"integrity":"sha512-IPEQnZJrLFbrlhkQ/+yETjZlSF77zqIlq3iT/i0Z1zYlukftYRqhDvYCXAkv0Mp0oVYmy5D+a1aOlQdRUrolTw==","signatures":[{"sig":"MEYCIQC4uWhbFpmVSeZcEK70/7C24lERbcY7D9tOTaZl5KZapAIhAOqysW9jHAwciWxH4Kba9H763qGGamPWfaTZjtvTgVEt","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentix-e%2fnl2spel-openai@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":100888},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"e4e2a4b0331673edb3a4a65f1fc155cb6f012277","scripts":{"lint":"tsc --noEmit","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b81c47d7-5f25-481d-a0f1-937d50c045f5"}},"repository":{"url":"git+https://github.com/AgentiX-E/nl2spel.git","type":"git","directory":"packages/nl2spel-openai"},"_npmVersion":"11.16.0","description":"OpenAI-compatible LLM provider for @agentix-e/nl2spel","directories":{},"_nodeVersion":"24.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.8","typescript":"^5.7.3","@agentix-e/nl2spel":"workspace:*"},"peerDependencies":{"@agentix-e/nl2spel":">=1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/nl2spel-openai_1.1.1_1783929171528_0.7723771794832126","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@agentix-e/nl2spel-openai","version":"1.1.2","keywords":["spel","openai","llm","nlp","expression-language","agentix"],"author":{"name":"Agentix-E"},"license":"MIT","_id":"@agentix-e/nl2spel-openai@1.1.2","maintainers":[{"name":"lambertyan","email":"853901691@qq.com"}],"homepage":"https://github.com/AgentiX-E/nl2spel#readme","bugs":{"url":"https://github.com/AgentiX-E/nl2spel/issues"},"dist":{"shasum":"52a889a7c7db30093f1b28507b6b2fa1ac79798a","tarball":"https://registry.npmjs.org/@agentix-e/nl2spel-openai/-/nl2spel-openai-1.1.2.tgz","fileCount":14,"integrity":"sha512-76TjlfBre7F+672jg7Vt03cO1vGJ6yUSsy2BeLZUHflcCj526aNDC8snT4/AVUqBGeVgeVd5Q34By5NFtCOGpQ==","signatures":[{"sig":"MEUCIHNRKI1TIX74RnXDfuZTbzFpSAiSi8+9NWGJIyHp6moeAiEA99yX2e44BGdAUdrSJLXI1JwgvGcss7mPdvaXiPAAoFs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentix-e%2fnl2spel-openai@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28562},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"fcc92a3a58e176f5765a64cbeb09f83f7d750e57","scripts":{"lint":"tsc --noEmit","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b81c47d7-5f25-481d-a0f1-937d50c045f5"}},"repository":{"url":"git+https://github.com/AgentiX-E/nl2spel.git","type":"git","directory":"packages/nl2spel-openai"},"_npmVersion":"11.16.0","description":"OpenAI-compatible LLM provider for @agentix-e/nl2spel","directories":{},"_nodeVersion":"24.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^2.1.8","typescript":"^5.7.3","@agentix-e/nl2spel":"workspace:*"},"peerDependencies":{"@agentix-e/nl2spel":">=1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/nl2spel-openai_1.1.2_1784001358492_0.21635899983944618","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@agentix-e/nl2spel-openai","version":"1.2.0","keywords":["spel","openai","llm","nlp","expression-language","agentix"],"author":{"name":"Agentix-E"},"license":"MIT","_id":"@agentix-e/nl2spel-openai@1.2.0","maintainers":[{"name":"lambertyan","email":"853901691@qq.com"}],"homepage":"https://github.com/AgentiX-E/nl2spel#readme","bugs":{"url":"https://github.com/AgentiX-E/nl2spel/issues"},"dist":{"shasum":"44a1897030fcbffb61ff01b631840e75ebf7341f","tarball":"https://registry.npmjs.org/@agentix-e/nl2spel-openai/-/nl2spel-openai-1.2.0.tgz","fileCount":14,"integrity":"sha512-OvuvYfMmCIm5EgiNMTuij0nmy9KCTaBCZw/Vm2zito8zGmmS0eZA0sU764c5SWCimkqCtwD1P/v98adjNmcqlA==","signatures":[{"sig":"MEUCIQCPHSHs++5d3imuV/WMYX8j19uNqEq7/a467NdgiDq+9AIgEiHdjcPYTZ5vYMDS2NgIj8cVv+kIKUdpUe6pOQ37eTQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentix-e%2fnl2spel-openai@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28562},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"aecf8a90fe113ccdacfb2bfcbaadad99fcbecdf6","scripts":{"lint":"tsc --noEmit","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b81c47d7-5f25-481d-a0f1-937d50c045f5"}},"repository":{"url":"git+https://github.com/AgentiX-E/nl2spel.git","type":"git","directory":"packages/nl2spel-openai"},"_npmVersion":"11.16.0","description":"OpenAI-compatible LLM provider for @agentix-e/nl2spel","directories":{},"_nodeVersion":"24.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.3","@agentix-e/nl2spel":"workspace:*"},"peerDependencies":{"@agentix-e/nl2spel":">=1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/nl2spel-openai_1.2.0_1784097033079_0.29216000904039596","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@agentix-e/nl2spel-openai","version":"1.2.1","keywords":["spel","openai","llm","nlp","expression-language","agentix"],"author":{"name":"Agentix-E"},"license":"MIT","_id":"@agentix-e/nl2spel-openai@1.2.1","maintainers":[{"name":"lambertyan","email":"853901691@qq.com"}],"homepage":"https://github.com/AgentiX-E/nl2spel#readme","bugs":{"url":"https://github.com/AgentiX-E/nl2spel/issues"},"dist":{"shasum":"3e9ff72ae1c6465d9764c6bdd7ff2849b9cb9b0e","tarball":"https://registry.npmjs.org/@agentix-e/nl2spel-openai/-/nl2spel-openai-1.2.1.tgz","fileCount":14,"integrity":"sha512-u4kj81JZHdJZXS1x11A7G4O/N7mawUZe6eKI3Chu8IE/0u1clVfFSTg/o0VjA7VsvyoZZfFpwxo5MabiCys3tQ==","signatures":[{"sig":"MEUCIQCig12tybommuw58N0qmYe4OY6fiugQniW3QsZ7Ao0dTgIgSTQ1sNu/WZAdKwUueL9aKlgJxPQRmD66yMnQJ7JWGKw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentix-e%2fnl2spel-openai@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28562},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"a13b3fa96b7f00c4eba897a04828b4749770946d","scripts":{"lint":"tsc --noEmit","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b81c47d7-5f25-481d-a0f1-937d50c045f5"}},"repository":{"url":"git+https://github.com/AgentiX-E/nl2spel.git","type":"git","directory":"packages/nl2spel-openai"},"_npmVersion":"11.16.0","description":"OpenAI-compatible LLM provider for @agentix-e/nl2spel","directories":{},"_nodeVersion":"24.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.3","@agentix-e/nl2spel":"workspace:*"},"peerDependencies":{"@agentix-e/nl2spel":">=1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/nl2spel-openai_1.2.1_1784100133294_0.9036722907882078","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@agentix-e/nl2spel-openai","version":"1.2.2","keywords":["spel","openai","llm","nlp","expression-language","agentix"],"author":{"name":"Agentix-E"},"license":"MIT","_id":"@agentix-e/nl2spel-openai@1.2.2","maintainers":[{"name":"lambertyan","email":"853901691@qq.com"}],"homepage":"https://github.com/AgentiX-E/nl2spel#readme","bugs":{"url":"https://github.com/AgentiX-E/nl2spel/issues"},"dist":{"shasum":"bb97ec5ecb2ff60ef6ca67fa699e1ee8edfa836e","tarball":"https://registry.npmjs.org/@agentix-e/nl2spel-openai/-/nl2spel-openai-1.2.2.tgz","fileCount":14,"integrity":"sha512-AMqL1bpkPoSLwAeffdoFuBkBHc+JylVyKXx8HcH5YTuAPq0PxtEL0L+GCf4iIjL708lPKKfCKE26KBlDWFuaSQ==","signatures":[{"sig":"MEUCIBo29jzmEJ8S1j82erJ6CijvR/fRsZhjpHfN8Ub2OicSAiEAoCTtQy4ydC86KfrmMlZ/JIWZXYviMsEuFOt8ov0OD1s=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentix-e%2fnl2spel-openai@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":28562},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"b67af993b734f0dbceeb933263148488e26219ce","scripts":{"lint":"tsc --noEmit","test":"vitest run","build":"tsc","clean":"rm -rf dist","typecheck":"tsc --noEmit","test:watch":"vitest"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b81c47d7-5f25-481d-a0f1-937d50c045f5"}},"repository":{"url":"git+https://github.com/AgentiX-E/nl2spel.git","type":"git","directory":"packages/nl2spel-openai"},"_npmVersion":"11.16.0","description":"OpenAI-compatible LLM provider for @agentix-e/nl2spel","directories":{},"_nodeVersion":"24.18.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vitest":"^3.0.0","typescript":"^5.7.3","@agentix-e/nl2spel":"workspace:*"},"peerDependencies":{"@agentix-e/nl2spel":">=1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/nl2spel-openai_1.2.2_1784102216220_0.6201443308004753","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@agentix-e/nl2spel-openai","version":"1.3.0","description":"OpenAI-compatible LLM provider for @agentix-e/nl2spel","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"import":"./dist/index.js","types":"./dist/index.d.ts"}},"scripts":{"build":"tsc","test":"vitest run","test:watch":"vitest","lint":"tsc --noEmit","typecheck":"tsc --noEmit","clean":"rm -rf dist"},"dependencies":{},"peerDependencies":{"@agentix-e/nl2spel":">=1.1.0"},"devDependencies":{"@agentix-e/nl2spel":"workspace:*","typescript":"^5.7.3","vitest":"^3.0.0"},"keywords":["spel","openai","llm","nlp","expression-language","agentix"],"license":"MIT","author":{"name":"Agentix-E"},"repository":{"type":"git","url":"git+https://github.com/AgentiX-E/nl2spel.git","directory":"packages/nl2spel-openai"},"publishConfig":{"access":"public"},"gitHead":"547073438bcad8015d22f5c61411899a737fadab","_id":"@agentix-e/nl2spel-openai@1.3.0","bugs":{"url":"https://github.com/AgentiX-E/nl2spel/issues"},"homepage":"https://github.com/AgentiX-E/nl2spel#readme","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-2lyh1w8rAZU61K6YUqjQXAjQoez9dx6k+TA8Ssu1RURNV2zvnzNXmiC6IdsLJtYXEeI+Wxwfe6RT5elyeq7gdg==","shasum":"bd40bb97db415bd551385105dd977716389d8836","tarball":"https://registry.npmjs.org/@agentix-e/nl2spel-openai/-/nl2spel-openai-1.3.0.tgz","fileCount":14,"unpackedSize":27319,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@agentix-e%2fnl2spel-openai@1.3.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCCLzVTPb6x9+evCoIbGorWUvlLXkSP8O6U0ZJYYSid2AIhANE4+7xnvFros2PQVLhOMBiKhrUaGvsrJvoLMnKwG3LK"}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:b81c47d7-5f25-481d-a0f1-937d50c045f5"}},"directories":{},"maintainers":[{"name":"lambertyan","email":"853901691@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nl2spel-openai_1.3.0_1784478010598_0.4167260549787968"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-11T13:07:47.778Z","modified":"2026-07-19T16:20:10.991Z","0.0.0":"2026-07-11T13:07:48.090Z","1.0.0":"2026-07-12T01:11:45.520Z","1.1.1":"2026-07-13T07:52:51.667Z","1.1.2":"2026-07-14T03:55:58.627Z","1.2.0":"2026-07-15T06:30:33.216Z","1.2.1":"2026-07-15T07:22:13.432Z","1.2.2":"2026-07-15T07:56:56.346Z","1.3.0":"2026-07-19T16:20:10.721Z"},"bugs":{"url":"https://github.com/AgentiX-E/nl2spel/issues"},"author":{"name":"Agentix-E"},"license":"MIT","homepage":"https://github.com/AgentiX-E/nl2spel#readme","keywords":["spel","openai","llm","nlp","expression-language","agentix"],"repository":{"type":"git","url":"git+https://github.com/AgentiX-E/nl2spel.git","directory":"packages/nl2spel-openai"},"description":"OpenAI-compatible LLM provider for @agentix-e/nl2spel","maintainers":[{"name":"lambertyan","email":"853901691@qq.com"}],"readme":"# @agentix-e/nl2spel-openai\n\n> OpenAI-compatible LLM Provider for @agentix-e/nl2spel\n>\n> 7 preset providers · Custom API support · Streaming output\n\n[![npm](https://img.shields.io/npm/v/@agentix-e/nl2spel-openai?color=blue)](https://www.npmjs.com/package/@agentix-e/nl2spel-openai)\n[![API Docs](https://img.shields.io/badge/docs-TypeDoc-blue)](https://agentix-e.github.io/nl2spel/api/modules/nl2spel_openai.html)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](../../LICENSE)\n\n---\n\n## API Documentation\n\n→ [nl2spel-openai API](https://agentix-e.github.io/nl2spel/api/modules/nl2spel_openai.html)\n\n## Preset Providers (7)\n\n| Provider | Model | Context | Streaming |\n|----------|-------|---------|-----------|\n| OpenAI | gpt-4o-mini | 128K | ✅ |\n| DeepSeek | deepseek-chat | 64K | ✅ |\n| GLM (Zhipu) | glm-4-flash | 128K | ✅ |\n| Copilot | gpt-4o | 128K | ✅ |\n| Hunyuan (Tencent) | hunyuan-lite | 32K | ✅ |\n| MiniMax | abab6.5s-chat | 32K | ✅ |\n| Kimi | moonshot-v1-8k | 8K | ✅ |\n\n## Quick Start\n\n```typescript\nimport { NL2SpelEngine } from '@agentix-e/nl2spel';\nimport { OpenAICompatibleProvider } from '@agentix-e/nl2spel-openai';\n\nconst engine = new NL2SpelEngine();\n\n// OpenAI\nengine.registerProvider(new OpenAICompatibleProvider({\n  provider: 'openai',\n  apiKey: 'sk-...',\n}));\n\n// DeepSeek (best value)\nengine.registerProvider(new OpenAICompatibleProvider({\n  provider: 'deepseek',\n  apiKey: 'sk-...',\n}));\n\n// Custom API\nengine.registerProvider(new OpenAICompatibleProvider({\n  custom: {\n    name: 'my-llm',\n    baseURL: 'https://my-llm.example.com/v1',\n    apiKey: 'sk-...',\n    model: 'my-model-v1',\n  },\n}));\n```\n\n## Multi-Provider Fallback\n\n```typescript\nengine.registerProvider(new OpenAICompatibleProvider({ provider: 'openai', apiKey: '...' }));\nengine.registerProvider(new OpenAICompatibleProvider({ provider: 'deepseek', apiKey: '...' }));\n\n// Auto fallback by cost from low to high\nconst result = await engine.generate('Complex multi-level nested expression');\n```\n\n## License\n\nMIT © 2025 Agentix-E\n","readmeFilename":"README.md"}