@eidentic/model 0.2.0 → 0.2.1
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 +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,8 +21,8 @@ import { openai } from "@ai-sdk/openai";
|
|
|
21
21
|
// Wrap a provider model
|
|
22
22
|
const model = new AIModel(anthropic("claude-sonnet-4-5"));
|
|
23
23
|
|
|
24
|
-
// Wrap an embedding model
|
|
25
|
-
const embedder =
|
|
24
|
+
// Wrap an embedding model (async factory — the dimension is probed automatically)
|
|
25
|
+
const embedder = await AIEmbedder.create(openai.embedding("text-embedding-3-small"));
|
|
26
26
|
|
|
27
27
|
// Check current prices
|
|
28
28
|
import { defaultPrices, pricesUpdatedAt } from "@eidentic/model";
|