@livekit/agents-plugin-google 1.0.0-next.3 → 1.0.0-next.5
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/README.md +14 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -36,6 +36,15 @@ const llm = new LLM({
|
|
|
36
36
|
});
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
+
To use the Gemini realtime model or TTS (Beta)
|
|
40
|
+
|
|
41
|
+
```typescript
|
|
42
|
+
import * as google from '@livekit/agents-plugin-google';
|
|
43
|
+
|
|
44
|
+
const realtimeModel = new google.beta.realtime.RealtimeModel()
|
|
45
|
+
const geminiTTS = new google.beta.TTS(),
|
|
46
|
+
```
|
|
47
|
+
|
|
39
48
|
### Environment Variables
|
|
40
49
|
|
|
41
50
|
- `GOOGLE_API_KEY` or `GOOGLE_GENAI_API_KEY`: Your Google AI Studio API key
|
|
@@ -67,13 +76,17 @@ const llm = new LLM({
|
|
|
67
76
|
## Authentication
|
|
68
77
|
|
|
69
78
|
### Google AI Studio
|
|
79
|
+
|
|
70
80
|
Set your API key via environment variable or constructor option:
|
|
81
|
+
|
|
71
82
|
```bash
|
|
72
83
|
export GOOGLE_API_KEY=your-api-key
|
|
73
84
|
```
|
|
74
85
|
|
|
75
86
|
### Vertex AI
|
|
87
|
+
|
|
76
88
|
For Vertex AI, ensure you have:
|
|
89
|
+
|
|
77
90
|
1. Google Cloud CLI installed and authenticated
|
|
78
91
|
2. Vertex AI API enabled in your project
|
|
79
92
|
3. Proper authentication configured (Application Default Credentials)
|
|
@@ -86,4 +99,4 @@ export GOOGLE_GENAI_USE_VERTEXAI=true
|
|
|
86
99
|
|
|
87
100
|
## License
|
|
88
101
|
|
|
89
|
-
Apache 2.0
|
|
102
|
+
Apache 2.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livekit/agents-plugin-google",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.5",
|
|
4
4
|
"description": "Google Gemini plugin for LiveKit Node Agents",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"require": "dist/index.cjs",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"@microsoft/api-extractor": "^7.35.0",
|
|
30
30
|
"tsup": "^8.3.5",
|
|
31
31
|
"typescript": "^5.0.0",
|
|
32
|
-
"@livekit/agents": "1.0.0-next.
|
|
33
|
-
"@livekit/agents-plugin-openai": "1.0.0-next.
|
|
34
|
-
"@livekit/agents-plugins-test": "1.0.0-next.
|
|
32
|
+
"@livekit/agents": "1.0.0-next.5",
|
|
33
|
+
"@livekit/agents-plugin-openai": "1.0.0-next.5",
|
|
34
|
+
"@livekit/agents-plugins-test": "1.0.0-next.5"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@google/genai": "^1.13.0",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@livekit/rtc-node": "^0.13.12",
|
|
44
|
-
"@livekit/agents": "1.0.0-next.
|
|
44
|
+
"@livekit/agents": "1.0.0-next.5"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsup --onSuccess \"pnpm build:types\"",
|