Skip to content

Commit

Permalink
Merge pull request #8 from Zipstack/v2-client-update
Browse files Browse the repository at this point in the history
baseURL and Client version updated
  • Loading branch information
jaseemjaskp authored Jan 1, 2025
2 parents ae7d44d + 6e27e89 commit 5d26be5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ These environment variables can be used to configure the client but are **option
## Usage

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

// Create a new client

Expand All @@ -40,9 +40,9 @@ const options = {

// All the option keys are optional
// apiKey is required if LLMWHISPERER_API_KEY environment variable is not set
const client = new LLMWhispererClient(options);
const client = new LLMWhispererClientV2(options);
//or
const client = new LLMWhispererClient();
const client = new LLMWhispererClientV2();

// Use the client to interact with the API
```
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const fs = require("fs");
const { register } = require("module");

const BASE_URL = "https://llmwhisperer-api.unstract.com/v1";
const BASE_URL_V2 = "https://llmwhisperer-api.unstract.com/api/v2";
const BASE_URL_V2 = "https://llmwhisperer-api.us-central.unstract.com/api/v2";

class LLMWhispererClientException extends Error {
constructor(message, statusCode) {
Expand Down

0 comments on commit 5d26be5

Please sign in to comment.