@yetter/client 0.0.9 → 0.0.11
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 +1 -3
- package/package.json +1 -1
- package/src/client.ts +1 -4
package/dist/client.js
CHANGED
|
@@ -169,9 +169,7 @@ export class yetter {
|
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
171
|
eventSource = new EventSourcePolyfill(sseStreamUrl, {
|
|
172
|
-
headers: { 'Authorization': `${_a.apiKey}
|
|
173
|
-
heartbeatTimeout: 120000,
|
|
174
|
-
}
|
|
172
|
+
headers: { 'Authorization': `${_a.apiKey}` },
|
|
175
173
|
});
|
|
176
174
|
eventSource.onopen = (event) => {
|
|
177
175
|
console.log("SSE Connection Opened:", event);
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -182,7 +182,6 @@ export class yetter {
|
|
|
182
182
|
model: model,
|
|
183
183
|
...options.input,
|
|
184
184
|
});
|
|
185
|
-
|
|
186
185
|
const requestId = initialApiResponse.request_id;
|
|
187
186
|
const responseUrl = initialApiResponse.response_url;
|
|
188
187
|
const cancelUrl = initialApiResponse.cancel_url;
|
|
@@ -271,9 +270,7 @@ export class yetter {
|
|
|
271
270
|
};
|
|
272
271
|
|
|
273
272
|
eventSource = new EventSourcePolyfill(sseStreamUrl, {
|
|
274
|
-
headers: { 'Authorization': `${yetter.apiKey}
|
|
275
|
-
heartbeatTimeout: 120000,
|
|
276
|
-
}
|
|
273
|
+
headers: { 'Authorization': `${yetter.apiKey}` },
|
|
277
274
|
} as any);
|
|
278
275
|
|
|
279
276
|
eventSource.onopen = (event: Event) => {
|