Skip to content

Commit 2742e2f

Browse files
authored
Migrate Pipet to use Gemini API (#307)
Also updates README to point to content on ai.google.dev.
1 parent 0ee1ffe commit 2742e2f

File tree

5 files changed

+112
-954
lines changed

5 files changed

+112
-954
lines changed

demos/palm/node/pipet-code-agent/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
Pipet Code Agent is an AI-powered code assistance tool, built as an extension
44
for Microsoft [Visual Studio Code](https://code.visualstudio.com/) (VS Code).
5-
Pipet uses the Google PaLM API to help you write code comments and review your
5+
Pipet uses the Google Gemini API to help you write code comments and review your
66
code by adding commands to the command pallete of VS Code.
77

88
![pipet-code-agent](./pipet-snippet.png)
99

1010
Pipet is provided as a development project, so you must configure and build
1111
it if you want to run it in your VS Code instance. For more information
1212
about building, configuring, running, and extending this project, see the
13-
[Build AI Code Assistant with Pipet Code Agent](https://developers.generativeai.google/develop/sample-apps/pipet-code-agent) tutorial.
13+
[Build AI Code Assistant with Pipet Code Agent](https://ai.google.dev/examples/pipet-code-agent) tutorial.
1414

1515
## Project setup
1616

@@ -19,8 +19,8 @@ for development and testing. The general steps are Installing some prerequisite
1919
software, setting a few environment variables, cloning the project from the code
2020
repository, and running the configuration installation.
2121

22-
Note: You need a Google PaLM API Key to be able to run the project, which you
23-
can obtain from the [Google PaLM API](https://developers.generativeai.google/tutorials/setup) page.
22+
Note: You need a Google Gemini API Key to be able to run the project, which you
23+
can obtain from the [Google Gemini API](https://ai.google.dev/tutorials/setup) page.
2424

2525
### Install the prerequisites
2626

@@ -64,7 +64,7 @@ You should now be able to test your installation by running Pipet Code Agent as
6464
a development extension in VS Code on your device. The test opens a separate VS
6565
Code **Extension Development Host** window where the new extension is available.
6666
In this new window, you configure the API Key the extension uses to access the
67-
Google PaLM API.
67+
Google Gemini API.
6868

6969
To configure and test your setup:
7070

@@ -76,13 +76,13 @@ To configure and test your setup:
7676
1. Run the extension in debug mode by selecting **Run > Start Debugging**.
7777
This step opens a separate VS Code **Extension Development Host** window.
7878
1. Open the VS Code settings by selecting **Code > Settings > Settings**.
79-
1. Get a [Google PaLM API Key](https://developers.generativeai.google/tutorials/setup)
79+
1. Get a [Google Gemini API Key](https://ai.google.dev/tutorials/setup)
8080
from the Generative AI Developer site, and copy the key string.
8181
1. Set the API key as a configuration setting. In **Search Settings**
82-
field, type `pipet`, select the **User** tab, and in the **Google > Palm:
82+
field, type `pipet`, select the **User** tab, and in the **Google > Gemini
8383
Api Key** setting, click the **Edit in settings.json** link, and add your
84-
PaLM API key:\
85-
`"google.palm.apiKey": "your-api-key-here"`
84+
Gemini API key:\
85+
`"google.gemini.apiKey": "your-api-key-here"`
8686
1. Save the changes to the `settings.json` file and close the settings tabs.
8787

8888
**Caution:** Treat your API Key like a password and protect it appropriately. Don't
@@ -100,4 +100,4 @@ To test the extension commands:
100100
## Resources
101101

102102
- Project code tutorial:
103-
[Build AI Code Assistant with Pipet Code Agent](https://developers.generativeai.google/develop/sample-apps/pipet-code-agent) tutorial.
103+
[Build AI Code Assistant with Pipet Code Agent](https://ai.google.dev/examples/pipet-code-agent) tutorial.

0 commit comments

Comments
 (0)