@reverbia/sdk 1.0.0-next.20251127102727 → 1.0.0-next.20251127132400

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/dist/index.cjs CHANGED
@@ -833,9 +833,10 @@ var createClient = (config = {}) => {
833
833
  };
834
834
 
835
835
  // src/clientConfig.ts
836
+ var BASE_URL = "https://ai-portal-dev.zetachain.com";
836
837
  var createClientConfig = (config) => ({
837
838
  ...config,
838
- baseUrl: "https://ai-portal-dev.zetachain.com"
839
+ baseUrl: BASE_URL
839
840
  });
840
841
 
841
842
  // src/client/client.gen.ts
package/dist/index.mjs CHANGED
@@ -804,9 +804,10 @@ var createClient = (config = {}) => {
804
804
  };
805
805
 
806
806
  // src/clientConfig.ts
807
+ var BASE_URL = "https://ai-portal-dev.zetachain.com";
807
808
  var createClientConfig = (config) => ({
808
809
  ...config,
809
- baseUrl: "https://ai-portal-dev.zetachain.com"
810
+ baseUrl: BASE_URL
810
811
  });
811
812
 
812
813
  // src/client/client.gen.ts
@@ -851,9 +851,10 @@ var createClient = (config = {}) => {
851
851
  };
852
852
 
853
853
  // src/clientConfig.ts
854
+ var BASE_URL = "https://ai-portal-dev.zetachain.com";
854
855
  var createClientConfig = (config) => ({
855
856
  ...config,
856
- baseUrl: "https://ai-portal-dev.zetachain.com"
857
+ baseUrl: BASE_URL
857
858
  });
858
859
 
859
860
  // src/client/client.gen.ts
@@ -863,7 +864,7 @@ var client = createClient(createClientConfig(createConfig()));
863
864
  function useChat(options) {
864
865
  const {
865
866
  getToken,
866
- baseUrl,
867
+ baseUrl = BASE_URL,
867
868
  onData: globalOnData,
868
869
  onFinish,
869
870
  onError
@@ -920,6 +921,7 @@ function useChat(options) {
920
921
  return { data: null, error: errorMsg };
921
922
  }
922
923
  const sseResult = await client.sse.post({
924
+ baseUrl,
923
925
  url: "/api/v1/chat/completions",
924
926
  body: {
925
927
  messages,
@@ -1410,7 +1412,7 @@ var generateEmbeddingForText = async (text, options = {}) => {
1410
1412
  const {
1411
1413
  model = "openai/text-embedding-3-small",
1412
1414
  getToken,
1413
- baseUrl
1415
+ baseUrl = BASE_URL
1414
1416
  } = options;
1415
1417
  try {
1416
1418
  const token = getToken ? await getToken() : null;
@@ -1455,7 +1457,7 @@ var generateEmbeddingsForMemories = async (memories, options = {}) => {
1455
1457
  const {
1456
1458
  model = "openai/text-embedding-3-small",
1457
1459
  getToken,
1458
- baseUrl
1460
+ baseUrl = BASE_URL
1459
1461
  } = options;
1460
1462
  const embeddings = /* @__PURE__ */ new Map();
1461
1463
  for (const memory of memories) {
@@ -1518,7 +1520,7 @@ function useMemory(options = {}) {
1518
1520
  generateEmbeddings = true,
1519
1521
  onFactsExtracted,
1520
1522
  getToken,
1521
- baseUrl
1523
+ baseUrl = BASE_URL
1522
1524
  } = options;
1523
1525
  const extractionInProgressRef = (0, import_react3.useRef)(false);
1524
1526
  const extractMemoriesFromMessage = (0, import_react3.useCallback)(
@@ -807,9 +807,10 @@ var createClient = (config = {}) => {
807
807
  };
808
808
 
809
809
  // src/clientConfig.ts
810
+ var BASE_URL = "https://ai-portal-dev.zetachain.com";
810
811
  var createClientConfig = (config) => ({
811
812
  ...config,
812
- baseUrl: "https://ai-portal-dev.zetachain.com"
813
+ baseUrl: BASE_URL
813
814
  });
814
815
 
815
816
  // src/client/client.gen.ts
@@ -819,7 +820,7 @@ var client = createClient(createClientConfig(createConfig()));
819
820
  function useChat(options) {
820
821
  const {
821
822
  getToken,
822
- baseUrl,
823
+ baseUrl = BASE_URL,
823
824
  onData: globalOnData,
824
825
  onFinish,
825
826
  onError
@@ -876,6 +877,7 @@ function useChat(options) {
876
877
  return { data: null, error: errorMsg };
877
878
  }
878
879
  const sseResult = await client.sse.post({
880
+ baseUrl,
879
881
  url: "/api/v1/chat/completions",
880
882
  body: {
881
883
  messages,
@@ -1366,7 +1368,7 @@ var generateEmbeddingForText = async (text, options = {}) => {
1366
1368
  const {
1367
1369
  model = "openai/text-embedding-3-small",
1368
1370
  getToken,
1369
- baseUrl
1371
+ baseUrl = BASE_URL
1370
1372
  } = options;
1371
1373
  try {
1372
1374
  const token = getToken ? await getToken() : null;
@@ -1411,7 +1413,7 @@ var generateEmbeddingsForMemories = async (memories, options = {}) => {
1411
1413
  const {
1412
1414
  model = "openai/text-embedding-3-small",
1413
1415
  getToken,
1414
- baseUrl
1416
+ baseUrl = BASE_URL
1415
1417
  } = options;
1416
1418
  const embeddings = /* @__PURE__ */ new Map();
1417
1419
  for (const memory of memories) {
@@ -1474,7 +1476,7 @@ function useMemory(options = {}) {
1474
1476
  generateEmbeddings = true,
1475
1477
  onFactsExtracted,
1476
1478
  getToken,
1477
- baseUrl
1479
+ baseUrl = BASE_URL
1478
1480
  } = options;
1479
1481
  const extractionInProgressRef = useRef3(false);
1480
1482
  const extractMemoriesFromMessage = useCallback2(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reverbia/sdk",
3
- "version": "1.0.0-next.20251127102727",
3
+ "version": "1.0.0-next.20251127132400",
4
4
  "description": "",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",