You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,14 +6,22 @@ This repository contains a react-based starter app for using the [Multimodal Liv
6
6
7
7
Watch the demo of the Multimodal Live API [here](https://www.youtube.com/watch?v=J_q7JY1XxFE).
8
8
9
-
---
9
+
## Usage
10
10
11
-
To get started, [create a free Gemini API key](https://aistudio.google.com/apikey). We have provided several example applications on other branches of this repository:
11
+
To get started, [create a free Gemini API key](https://aistudio.google.com/apikey) and add it to the `.env` file. Then:
12
+
13
+
```
14
+
$ npm install && npm start
15
+
```
16
+
17
+
We have provided several example applications on other branches of this repository:
Below is an example of an entire application that will use Google Search grounding and then render graphs using [vega-embed](https://github.com/vega/vega-embed):
18
26
19
27
```typescript
@@ -69,7 +77,7 @@ export function Altair() {
69
77
};
70
78
client.on("toolcall", onToolCall);
71
79
return () => {
72
-
client.off("toolcall", onToolCall);
80
+
client.off("toolcall", onToolCall);
73
81
};
74
82
}, [client]);
75
83
@@ -84,14 +92,6 @@ export function Altair() {
84
92
}
85
93
```
86
94
87
-
## Usage
88
-
89
-
Add your Gemini API key to `.env` then:
90
-
91
-
```
92
-
$ npm install && npm start
93
-
```
94
-
95
95
## development
96
96
97
97
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
0 commit comments