@aicats/sdk 1.0.0 → 1.0.1

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.js CHANGED
@@ -124,7 +124,7 @@ async function getSearchCompletion(options = {}) {
124
124
  return data.completion;
125
125
  }
126
126
  async function getThemes() {
127
- const response = await fetch(`${ApiUrl}/cat/themes`);
127
+ const response = await fetch(`${ApiUrl}/cat/theme-list`);
128
128
  if (!response.ok) {
129
129
  throw new Error(`Error fetching themes: ${response.statusText}`);
130
130
  }
package/dist/index.mjs CHANGED
@@ -96,7 +96,7 @@ async function getSearchCompletion(options = {}) {
96
96
  return data.completion;
97
97
  }
98
98
  async function getThemes() {
99
- const response = await fetch(`${ApiUrl}/cat/themes`);
99
+ const response = await fetch(`${ApiUrl}/cat/theme-list`);
100
100
  if (!response.ok) {
101
101
  throw new Error(`Error fetching themes: ${response.statusText}`);
102
102
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aicats/sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Official JavaScript SDK for the ai-cats.net API",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",