Download the PHP package dmlab/module-typesafe-core without Composer
On this page you can find all versions of the php package dmlab/module-typesafe-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dmlab/module-typesafe-core
More information about dmlab/module-typesafe-core
Files in dmlab/module-typesafe-core
Package module-typesafe-core
Short Description AI client for Magento 2 with TypeSafe (Jev), OpenAI-compatible (OpenAI, Azure OpenAI, Ollama, vLLM), Anthropic Claude and Google Gemini providers: shared connection with your own encrypted API key, response cache, monthly token budget, retries and rate limiting.
License OSL-3.0
Homepage https://github.com/dmlab-work/module-typesafe-core
Informations about the package module-typesafe-core
DmLab_TypeSafeCore
TypeSafe (Jev) AI client for Magento 2 — one connection, cache and token budget shared by every DMLab AI module.
TypeSafe answers structured questions about text — yes/no, pick one of N options, score on a scale — with calibrated probabilities instead of free-form output, at $0.042 per 1M input tokens. This module connects Magento to it. You usually get it as a dependency of a module that uses it, such as Catalog Enrich (fills empty product attributes from descriptions); on its own it adds no storefront or catalog behaviour.
What you get
- Your own key — register at console.typesafe.ai and pay TypeSafe directly. The key is stored encrypted in Magento; we never see it.
- Settings in one place — enable, API key, pinned model version (
jev-1.13.0), Test Connection. - Spend control — a monthly token budget with this month's usage and cost shown under the field; a response cache so the same question is never paid for twice.
- Resilience — parallel requests, retries with backoff, rate-limit pauses and a circuit breaker, so an API hiccup never floods the API or your logs.
Install
Magento 2.4.9+, PHP 8.3–8.5 with ext-curl. Then Stores → Configuration → DMLab → TypeSafe: enable, paste the
key, Test Connection.
For developers
evaluateMany() sends a batch in parallel and returns a Response or a TypeSafeException per key; it never
throws. Use Api\ConfigInterface::isConfigured() / getModel() instead of your own settings, and
Api\UsageInterface for the remaining budget.
Data and privacy
Only the text a consuming module puts into a request is sent to TypeSafe (US-hosted API). Request and response content is never logged. Zero data retention is available on TypeSafe's enterprise plan.
License
OSL-3.0
All versions of module-typesafe-core with dependencies
ext-curl Version *
magento/framework Version ^103.0.7
magento/module-backend Version ^102.0.7
magento/module-config Version ^101.2.7
symfony/console Version ^6.4||^7.4
psr/log Version ^2.0||^3.0