vellum-ai 0.0.3 → 0.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/README.md CHANGED
@@ -5,6 +5,9 @@
5
5
 
6
6
  The Vellum Node.js library provides access to the Vellum API from JavaScript/TypeScript.
7
7
 
8
+ ## API Docs
9
+ You can find Vellum's complete API docs at [docs.vellum.ai](https://docs.vellum.ai).
10
+
8
11
 
9
12
  ## Installation
10
13
 
@@ -19,7 +22,7 @@ yarn add vellum-ai
19
22
  [![Try it out](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/edit/typescript-example-using-sdk-built-with-fern-xbs4jx?file=app.ts)
20
23
 
21
24
  ```typescript
22
- import { VellumClient } from '@fern-api/vellum';
25
+ import { VellumClient } from 'vellum-ai';
23
26
 
24
27
  const vellum = new VellumClient({
25
28
  apiKey: 'VELLUM_API_KEY',
@@ -39,7 +42,7 @@ Documents can be uploaded to Vellum via either the UI or this API. Once uploaded
39
42
  ```typescript
40
43
  import * as fs from 'fs';
41
44
 
42
- await vellum.document.upload(fs.createReadStream('/path/to/your/file.txt'), {
45
+ await vellum.documents.upload(fs.createReadStream('/path/to/your/file.txt'), {
43
46
  addToIndexNames: ['<your-index-name>'],
44
47
  externalId: '<your-external-id>',
45
48
  label: 'Human-friendly label for your document',
@@ -26,7 +26,7 @@ const fetcher = async (args) => {
26
26
  data: args.body,
27
27
  validateStatus: () => true,
28
28
  transformResponse: (response) => response,
29
- timeout: args.timeoutMs ?? 60_000,
29
+ timeout: args.timeoutMs,
30
30
  transitional: {
31
31
  clarifyTimeoutError: true,
32
32
  },
@@ -26,7 +26,7 @@ const fetcher = async (args) => {
26
26
  data: args.body,
27
27
  validateStatus: () => true,
28
28
  transformResponse: (response) => response,
29
- timeout: args.timeoutMs ?? 60_000,
29
+ timeout: args.timeoutMs,
30
30
  transitional: {
31
31
  clarifyTimeoutError: true,
32
32
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vellum-ai",
3
- "version": "v0.0.3",
3
+ "version": "v0.0.5",
4
4
  "private": false,
5
5
  "repository": "https://github.com/vellum-ai/vellum-client-node",
6
6
  "main": "./index.js",