@trillet-ai/web-sdk 1.2.13 → 1.2.14

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/dist/index.js +4 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -55,12 +55,10 @@ export class TrilletAgent extends EventEmitter {
55
55
  method: 'POST',
56
56
  headers: {
57
57
  'Content-Type': 'application/json',
58
- 'Accept': 'application/json'
59
- },
60
- body: JSON.stringify({
61
- api_key: this.config.apiKey,
62
- workspace_id: this.config.workspaceId
63
- })
58
+ 'Accept': 'application/json',
59
+ 'x-api-key': this.config.apiKey,
60
+ 'x-workspace-id': this.config.workspaceId
61
+ }
64
62
  });
65
63
  if (!response.ok) {
66
64
  let errorMessage;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trillet-ai/web-sdk",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "description": "Trillet Web SDK for real-time audio communication with AI agents",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",