Skip to content

Commit

Permalink
Update node package usage example to use ProfileBrowser.
Browse files Browse the repository at this point in the history
Part of #64.
  • Loading branch information
jkomoros committed Sep 4, 2023
1 parent 0af41de commit 7778080
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,17 @@ You can then use it like so:
```js
import {
Garden
Garden,
ProfileBrowser,
} from 'prompt-garden';
const env = {
openai_api_key: 'YOUR_API_KEY_HERE'
};
const main = async () => {
const garden = new Garden(env);
const profile = new ProfileBrowser();
const garden = new Garden(env, profile);
await garden.ensureSeedPacket('https://raw.githubusercontent.com/jkomoros/prompt-garden/main/seeds/example-import.json');
const seed = await garden.seed('favorite-things-limerick');
const result = await seed.grow();
Expand Down

0 comments on commit 7778080

Please sign in to comment.