From 6e27e896bfc6ae52defa221624fc3406479bb5f5 Mon Sep 17 00:00:00 2001 From: Jaseem Jas Date: Wed, 1 Jan 2025 19:37:50 +0530 Subject: [PATCH] baseURL and Client version updated --- README.md | 6 +++--- index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5322daf..d5d1320 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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 ``` diff --git a/index.js b/index.js index b81dcf3..747f3be 100644 --- a/index.js +++ b/index.js @@ -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) {