@shop-os/modelkit 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -53,6 +53,18 @@ await clip.cleanup?.();
53
53
 
54
54
  Keys come from `process.env` by default: bare names for pro (`OPENAI_API_KEY`, `FAL_KEY`, `ARK_API_KEY` ...) and the `ENTERPRISE_` prefix for enterprise. Pass `keys: { pro, enterprise }` to override.
55
55
 
56
+ ## Browser-safe catalog
57
+
58
+ ```ts
59
+ import { Catalog, MODELS, resolveOptions } from "@shop-os/modelkit/catalog";
60
+ ```
61
+
62
+ The catalog subpath carries the model rows (`MODELS` plus the per-type
63
+ arrays), `Catalog`, the option resolvers (`resolveOptions` and the per-type
64
+ resolvers), `ModelKitError` and the catalog types. It includes no adapters, no
65
+ client, no keys, no text helpers and no provider SDKs, and builds for
66
+ `es2022` / neutral so it bundles straight into the browser.
67
+
56
68
  ## A superset of `ai`
57
69
 
58
70
  Every export of `ai` (the Vercel AI SDK) is re-exported here, so this import swap is