Skip to content

Commit 9ee21bb

Browse files
authored
Add 'Open in IDX' button
Plus minor updates to `README.md`
1 parent 5a581b2 commit 9ee21bb

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

README.md

+17-8
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,23 @@ Developer sample written in Angular, demonstrating how to use the Gemini API and
44
function calling to collaboratively and iteratively create a database schema
55
using natural language prompts.
66

7-
8-
Caution: Using the Google AI SDK directly from a client-side app as is shown in
9-
this sample is recommended for prototyping only. For non-prototyping use cases,
10-
we strongly recommend that you call the Google AI Gemini API only server-side to
11-
keep your API key safe. If you embed your API key directly in your web app or
12-
fetch it remotely at runtime, you risk potentially exposing your API key to
13-
malicious actors.
14-
7+
<a href="https://idx.google.com/import?url=https://github.com/google-gemini/angular-database-schema-sample">
8+
<picture>
9+
<source media="(prefers-color-scheme: dark)" srcset="https://cdn.idx.dev/btn/[email protected]">
10+
<source media="(prefers-color-scheme: light)" srcset="https://cdn.idx.dev/btn/[email protected]">
11+
<img height="32" alt="Open in IDX" src="https://cdn.idx.dev/btn/[email protected]">
12+
</picture>
13+
</a>
14+
15+
## Usage notes
16+
17+
> [!CAUTION]
18+
> Using the Google AI SDK directly from a client-side app as is shown in
19+
> this sample is recommended for prototyping only. For non-prototyping use
20+
> cases, we strongly recommend that you call the Google AI Gemini API only
21+
> server-side to keep your API key safe. If you embed your API key directly in
22+
> your web app or fetch it remotely at runtime, you risk potentially exposing
23+
> your API key to malicious actors.
1524
1625
This project was initially generated with
1726
[Angular CLI](https://github.com/angular/angular-cli) version 17.0.5.

0 commit comments

Comments
 (0)