@yetter/client 0.0.9 → 0.0.10

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/client.js CHANGED
@@ -80,6 +80,7 @@ export class yetter {
80
80
  model: model,
81
81
  ...options.input,
82
82
  });
83
+ console.timeEnd("Initial API Response");
83
84
  const requestId = initialApiResponse.request_id;
84
85
  const responseUrl = initialApiResponse.response_url;
85
86
  const cancelUrl = initialApiResponse.cancel_url;
@@ -169,9 +170,8 @@ export class yetter {
169
170
  }
170
171
  };
171
172
  eventSource = new EventSourcePolyfill(sseStreamUrl, {
172
- headers: { 'Authorization': `${_a.apiKey}`,
173
- heartbeatTimeout: 120000,
174
- }
173
+ headers: { 'Authorization': `${_a.apiKey}` },
174
+ heartbeatTimeout: 3000,
175
175
  });
176
176
  eventSource.onopen = (event) => {
177
177
  console.log("SSE Connection Opened:", event);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yetter/client",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "build": "tsc",
package/src/client.ts CHANGED
@@ -182,7 +182,7 @@ export class yetter {
182
182
  model: model,
183
183
  ...options.input,
184
184
  });
185
-
185
+ console.timeEnd("Initial API Response");
186
186
  const requestId = initialApiResponse.request_id;
187
187
  const responseUrl = initialApiResponse.response_url;
188
188
  const cancelUrl = initialApiResponse.cancel_url;
@@ -271,9 +271,8 @@ export class yetter {
271
271
  };
272
272
 
273
273
  eventSource = new EventSourcePolyfill(sseStreamUrl, {
274
- headers: { 'Authorization': `${yetter.apiKey}`,
275
- heartbeatTimeout: 120000,
276
- }
274
+ headers: { 'Authorization': `${yetter.apiKey}` },
275
+ heartbeatTimeout: 3000,
277
276
  } as any);
278
277
 
279
278
  eventSource.onopen = (event: Event) => {