@vapi-ai/web 1.0.267 → 1.1.0
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/package.json +3 -3
- package/update.sh +1 -1
- package/dist/example.d.ts +0 -1
- package/dist/example.js +0 -26
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vapi-ai/web",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/vapi.js",
|
|
6
6
|
"types": "dist/vapi.d.ts",
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"url": "git+https://github.com/VapiAI/snippet.git"
|
|
17
17
|
},
|
|
18
18
|
"author": "vapi",
|
|
19
|
-
"license": "
|
|
19
|
+
"license": "MIT",
|
|
20
20
|
"bugs": {
|
|
21
21
|
"url": "https://github.com/VapiAI/snippet/issues"
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/VapiAI/snippet#readme",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@daily-co/daily-js": "^0.
|
|
25
|
+
"@daily-co/daily-js": "^0.58.0",
|
|
26
26
|
"@vapi-ai/web": "^1.0.263",
|
|
27
27
|
"events": "^3.3.0"
|
|
28
28
|
},
|
package/update.sh
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
npm version
|
|
1
|
+
npm version minor && npm run build && npm publish && cd ../landing && npm install @vapi-ai/web@latest && cd -
|
package/dist/example.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/example.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
// require('dotenv').config();
|
|
7
|
-
const vapi_1 = __importDefault(require("./vapi"));
|
|
8
|
-
// const VAPI_PUBLIC_KEY = process.env.VAPI_PUBLIC_KEY;
|
|
9
|
-
// if (!VAPI_PUBLIC_KEY) throw new Error('VAPI_PUBLIC_KEY is required');
|
|
10
|
-
const vapi = new vapi_1.default('812437de-42ce-4bca-a9e7-e62cd170e882');
|
|
11
|
-
vapi.start({
|
|
12
|
-
model: {
|
|
13
|
-
provider: 'openai',
|
|
14
|
-
model: 'gpt-4',
|
|
15
|
-
messages: [
|
|
16
|
-
{
|
|
17
|
-
content: 'you are an assistant',
|
|
18
|
-
role: 'assistant',
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
},
|
|
22
|
-
voice: {
|
|
23
|
-
provider: '11labs',
|
|
24
|
-
voiceId: 'burt',
|
|
25
|
-
},
|
|
26
|
-
});
|