OpenAI model connectors for @metreeca/llms.
Connects AI jobs to OpenAI models, ready to work alongside any other task in a pipeline. Long runs proceed reliably to completion, and every result a job receives from a model can be trusted as complete.
npm install @metreeca/gear # the job executor
npm install @metreeca/llms # AI tasks and shared services
npm install @metreeca/llms-openai # this package
Node.js 22 or later is required.
TypeScript consumers must use "moduleResolution": "nodenext"/"node16"/"bundler" in tsconfig.json.
The legacy "node" resolver is not supported.
See the API reference.
This project is licensed under the Apache 2.0 License – see LICENSE file for details.
Creates an OpenAI API client paced against the published rate quotas.
Extracts the output text of a chat completion.
Extracts the output text of a chat completion as a JSON payload.
Extracts the embedding of an OpenAI API response.
OpenAI model connectors.
Connects AI jobs to OpenAI models, ready to work alongside any other task in a pipeline. Long runs proceed reliably to completion, and every result a job receives from a model can be trusted as complete.
See