Skip to content

Commit 7a002e7

Browse files
authored
Update README.md
1 parent e51b8b1 commit 7a002e7

File tree

1 file changed

+2
-59
lines changed

1 file changed

+2
-59
lines changed

packages/component_code_gen/README.md

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,5 @@
1-
# AI Code Gen for Pipedream Components
2-
3-
Generate components using OpenAI GPT.
4-
5-
### Installation
6-
7-
1. Install [gh cli](https://github.com/cli/cli#installation)
8-
9-
2. Install [asdf package manager](https://asdf-vm.com/guide/getting-started.html#getting-started).
10-
11-
3. Run `cd packages/component_code_gen`
12-
13-
4. Run `asdf install`
14-
15-
5. Run `poetry install`
16-
17-
### Setup
18-
19-
#### Create a `.env` file
20-
21-
`cp .env.example .env`
22-
23-
#### Modify the `.env` file to use your own keys:
24-
25-
1. Add these API Keys to your new `.env` file:
26-
27-
- BROWSERLESS_API_KEY=api_key # required when parsing URL links
28-
- SUPABASE_URL=https://your-project-url.supabase.co # get this from Supabase Project Settings -> API
29-
- SUPABASE_API_KEY=service_role_key # get this from Supabase Project Settings -> API
30-
31-
2. Add Azure OpenAI API keys (gpt-4-32k)
32-
33-
- OPENAI_API_TYPE=azure
34-
- OPENAI_DEPLOYMENT_NAME=deployment-name
35-
- OPENAI_EMBEDDINGS_DEPLOYMENT_NAME=embeddings-deployment-name
36-
- OPENAI_API_VERSION=2023-05-15
37-
- OPENAI_API_BASE=https://resource-name.openai.azure.com
38-
- OPENAI_API_KEY=azure-api-key
39-
- OPENAI_MODEL=gpt-4-32k
40-
41-
### Running
42-
43-
#### GitHub Issues
44-
45-
The command below will parse through GitHub issue description and generate code for the list of components.
46-
47-
```
48-
poetry run python main.py --issue issue_number
49-
```
50-
51-
#### Draft PRs
52-
53-
The default behaviour is to automatically create a branch and submit a Draft PR. The command above is equivalent to:
54-
55-
```
56-
poetry run python main.py --issue issue_number --skip-pr=False
57-
```
58-
59-
If you don't want to submit a Draft PR and keep the changes local, pass in `--skip-pr` (which sets it to `True`).
1+
remove packages
2+
igkore cuazom path
603

614
#### Output Dir
625

0 commit comments

Comments
 (0)