-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a5409b
commit bf04979
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Google Generative AI Sample for Web (Javascript) | ||
|
||
This sample app demonstrates how to use state-of-the-art | ||
generative AI models (like Gemini) to build AI-powered features and applications. | ||
|
||
To try out this sample app, you'll need a modern web browser and a local http server. | ||
|
||
## Requirements | ||
|
||
Follow the instructions on Google AI Studio [setup page](https://makersuite.google.com/app/apikey) to obtain an API key. | ||
|
||
It’s strongly recommended that you do not check an API key into your version control system. Instead, you should use a secrets store for your API key. | ||
|
||
The Node.js http server provided alonside this app (`http-server.js`) assumes that you're providing an `API_KEY` environment variable. | ||
|
||
## Features | ||
|
||
This sample showcases the following API capablilites: | ||
|
||
- `index.html` - demonstrates the Text and MultiModal feature from the SDK | ||
- `chat.html` - demonstrates the Multi-turn Conversations feature from the SDK | ||
|
||
## Documentation | ||
|
||
- [Quickstart: Get started with the Gemini API in web apps](https://googledevai.google.com/tutorials/web_quickstart). |