File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ These environment variables can be used to configure the client but are **option
27
27
## Usage
28
28
29
29
``` javascript
30
- const { LLMWhispererClient } = require (" llmwhisperer-client" );
30
+ const { LLMWhispererClientV2 } = require (" llmwhisperer-client" );
31
31
32
32
// Create a new client
33
33
@@ -40,9 +40,9 @@ const options = {
40
40
41
41
// All the option keys are optional
42
42
// apiKey is required if LLMWHISPERER_API_KEY environment variable is not set
43
- const client = new LLMWhispererClient (options);
43
+ const client = new LLMWhispererClientV2 (options);
44
44
// or
45
- const client = new LLMWhispererClient ();
45
+ const client = new LLMWhispererClientV2 ();
46
46
47
47
// Use the client to interact with the API
48
48
```
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const fs = require("fs");
18
18
const { register } = require ( "module" ) ;
19
19
20
20
const BASE_URL = "https://llmwhisperer-api.unstract.com/v1" ;
21
- const BASE_URL_V2 = "https://llmwhisperer-api.unstract.com/api/v2" ;
21
+ const BASE_URL_V2 = "https://llmwhisperer-api.us-central. unstract.com/api/v2" ;
22
22
23
23
class LLMWhispererClientException extends Error {
24
24
constructor ( message , statusCode ) {
You can’t perform that action at this time.
0 commit comments