@ai-sdk/voyage 1.0.4 → 1.0.5

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,12 @@
1
1
  # @ai-sdk/voyage
2
2
 
3
+ ## 1.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [942f2f8]
8
+ - @ai-sdk/provider-utils@4.0.28
9
+
3
10
  ## 1.0.4
4
11
 
5
12
  ### 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
@@ -223,7 +223,7 @@ var voyageRerankingResponseSchema = import_v45.z.object({
223
223
  });
224
224
 
225
225
  // src/version.ts
226
- var VERSION = true ? "1.0.4" : "0.0.0-test";
226
+ var VERSION = true ? "1.0.5" : "0.0.0-test";
227
227
 
228
228
  // src/voyage-provider.ts
229
229
  function createVoyage(options = {}) {
package/dist/index.mjs CHANGED
@@ -216,7 +216,7 @@ var voyageRerankingResponseSchema = z5.object({
216
216
  });
217
217
 
218
218
  // src/version.ts
219
- var VERSION = true ? "1.0.4" : "0.0.0-test";
219
+ var VERSION = true ? "1.0.5" : "0.0.0-test";
220
220
 
221
221
  // src/voyage-provider.ts
222
222
  function createVoyage(options = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-sdk/voyage",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -26,15 +26,15 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@ai-sdk/provider": "3.0.10",
29
- "@ai-sdk/provider-utils": "4.0.27"
29
+ "@ai-sdk/provider-utils": "4.0.28"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "20.17.24",
33
33
  "tsup": "^8",
34
34
  "typescript": "5.8.3",
35
35
  "zod": "3.25.76",
36
- "@ai-sdk/test-server": "1.0.5",
37
- "@vercel/ai-tsconfig": "0.0.0"
36
+ "@vercel/ai-tsconfig": "0.0.0",
37
+ "@ai-sdk/test-server": "1.0.5"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "zod": "^3.25.76 || ^4.1.8"