Skip to content

Commit 5d26be5

Browse files
authored
Merge pull request #8 from Zipstack/v2-client-update
baseURL and Client version updated
2 parents ae7d44d + 6e27e89 commit 5d26be5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ These environment variables can be used to configure the client but are **option
2727
## Usage
2828

2929
```javascript
30-
const { LLMWhispererClient } = require("llmwhisperer-client");
30+
const { LLMWhispererClientV2 } = require("llmwhisperer-client");
3131

3232
// Create a new client
3333

@@ -40,9 +40,9 @@ const options = {
4040

4141
// All the option keys are optional
4242
// apiKey is required if LLMWHISPERER_API_KEY environment variable is not set
43-
const client = new LLMWhispererClient(options);
43+
const client = new LLMWhispererClientV2(options);
4444
//or
45-
const client = new LLMWhispererClient();
45+
const client = new LLMWhispererClientV2();
4646

4747
// Use the client to interact with the API
4848
```

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const fs = require("fs");
1818
const { register } = require("module");
1919

2020
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";
2222

2323
class LLMWhispererClientException extends Error {
2424
constructor(message, statusCode) {

0 commit comments

Comments
 (0)