@reititin/client 0.0.8 → 0.0.9

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import http2 from 'http2';
2
2
  import axios from 'axios';
3
3
 
4
- export const ReititinClient = ({ token, onMessage }) => {
4
+ export const ReititinClient = ({host, token, onMessage }) => {
5
5
  const MESSAGE_ENDPOINT = `/api/agents/messages`;
6
- const FINALIZE_URL = "https://test.reititin.com/api/finalizeMessage";
6
+ const FINALIZE_URL = `https://${host}/api/finalizeMessage`;
7
7
  let buffer = "";
8
8
 
9
9
  const connectSSE = () => {
@@ -11,7 +11,7 @@ export const ReititinClient = ({ token, onMessage }) => {
11
11
 
12
12
  console.log("Waiting for messages.");
13
13
 
14
- const client = http2.connect('https://test.reititin.com');
14
+ const client = http2.connect(`https://${host}`);
15
15
  const req = client.request({
16
16
  ':method': 'GET',
17
17
  ':path': MESSAGE_ENDPOINT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reititin/client",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Reititin client allows you to connect your LLM system to Reititin platform.",
5
5
  "keywords": [
6
6
  "AI",