@horribleprogram/sdk 0.1.1 → 0.1.2

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.
@@ -2,7 +2,7 @@
2
2
  var Botcierge = class {
3
3
  baseUrl;
4
4
  constructor(config = {}) {
5
- this.baseUrl = config.baseUrl || "http://localhost:8000";
5
+ this.baseUrl = config.baseUrl || "https://horribleprogram-intentapi.hf.space";
6
6
  }
7
7
  async query_intent(utterance) {
8
8
  const response = await fetch(`${this.baseUrl}/classify`, {
package/dist/index.cjs CHANGED
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(index_exports);
27
27
  var Botcierge = class {
28
28
  baseUrl;
29
29
  constructor(config = {}) {
30
- this.baseUrl = config.baseUrl || "http://localhost:8000";
30
+ this.baseUrl = config.baseUrl || "https://horribleprogram-intentapi.hf.space";
31
31
  }
32
32
  async query_intent(utterance) {
33
33
  const response = await fetch(`${this.baseUrl}/classify`, {
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Botcierge,
3
3
  query_intent
4
- } from "./chunk-AOE6JLKC.js";
4
+ } from "./chunk-EWLGKE65.js";
5
5
  export {
6
6
  Botcierge,
7
7
  query_intent
package/dist/main.cjs CHANGED
@@ -29,7 +29,7 @@ var readline = __toESM(require("readline"), 1);
29
29
  var Botcierge = class {
30
30
  baseUrl;
31
31
  constructor(config = {}) {
32
- this.baseUrl = config.baseUrl || "http://localhost:8000";
32
+ this.baseUrl = config.baseUrl || "https://horribleprogram-intentapi.hf.space";
33
33
  }
34
34
  async query_intent(utterance) {
35
35
  const response = await fetch(`${this.baseUrl}/classify`, {
package/dist/main.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  query_intent
3
- } from "./chunk-AOE6JLKC.js";
3
+ } from "./chunk-EWLGKE65.js";
4
4
 
5
5
  // src/main.ts
6
6
  import * as readline from "readline";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@horribleprogram/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "SDK for Botcierge Intent Classification",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",