@ai-sdk/voyage 2.0.0-canary.18 → 2.0.0-canary.20

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @ai-sdk/voyage
2
2
 
3
+ ## 2.0.0-canary.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ee798eb]
8
+ - Updated dependencies [daf6637]
9
+ - @ai-sdk/provider-utils@5.0.0-canary.45
10
+
11
+ ## 2.0.0-canary.19
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [6c93e36]
16
+ - Updated dependencies [f617ac2]
17
+ - @ai-sdk/provider-utils@5.0.0-canary.44
18
+
3
19
  ## 2.0.0-canary.18
4
20
 
5
21
  ### Patch Changes
package/README.md ADDED
@@ -0,0 +1,46 @@
1
+ # AI SDK - Voyage AI Provider
2
+
3
+ The **[Voyage AI provider](https://ai-sdk.dev/providers/ai-sdk-providers/voyage)** for the [AI SDK](https://ai-sdk.dev/docs) contains embedding and reranking model support for the [Voyage AI](https://voyageai.com/) APIs.
4
+
5
+ ## Setup
6
+
7
+ The Voyage AI provider is available in the `@ai-sdk/voyage` module. You can install it with
8
+
9
+ ```bash
10
+ npm i @ai-sdk/voyage
11
+ ```
12
+
13
+ ## Skill for Coding Agents
14
+
15
+ If you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:
16
+
17
+ ```shell
18
+ npx skills add vercel/ai
19
+ ```
20
+
21
+ ## Provider Instance
22
+
23
+ You can import the default provider instance `voyage` from `@ai-sdk/voyage`:
24
+
25
+ ```ts
26
+ import { voyage } from '@ai-sdk/voyage';
27
+ ```
28
+
29
+ ## Example
30
+
31
+ ```ts
32
+ import { voyage } from '@ai-sdk/voyage';
33
+ import { embedMany } from 'ai';
34
+
35
+ const { embeddings } = await embedMany({
36
+ model: voyage.textEmbedding('voyage-3'),
37
+ values: [
38
+ 'Sunny days are great for hiking',
39
+ 'Machine learning is a subset of AI',
40
+ ],
41
+ });
42
+ ```
43
+
44
+ ## Documentation
45
+
46
+ Please check out the **[Voyage AI provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/voyage)** for more information.
package/dist/index.js CHANGED
@@ -234,7 +234,7 @@ var voyageRerankingResponseSchema = lazySchema2(
234
234
  );
235
235
 
236
236
  // src/version.ts
237
- var VERSION = true ? "2.0.0-canary.18" : "0.0.0-test";
237
+ var VERSION = true ? "2.0.0-canary.20" : "0.0.0-test";
238
238
 
239
239
  // src/voyage-provider.ts
240
240
  function createVoyage(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/voyage",
3
- "version": "2.0.0-canary.18",
3
+ "version": "2.0.0-canary.20",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@ai-sdk/provider": "4.0.0-canary.17",
29
- "@ai-sdk/provider-utils": "5.0.0-canary.43"
29
+ "@ai-sdk/provider-utils": "5.0.0-canary.45"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "22.19.19",