From 7a002e75a8b27073587c1c52fdfeba2ba5340ce8 Mon Sep 17 00:00:00 2001 From: samss084 <131480264+samss084@users.noreply.github.com> Date: Tue, 11 Feb 2025 17:18:55 -0700 Subject: [PATCH 1/2] Update README.md --- packages/component_code_gen/README.md | 61 +-------------------------- 1 file changed, 2 insertions(+), 59 deletions(-) diff --git a/packages/component_code_gen/README.md b/packages/component_code_gen/README.md index f91c39f62ad88..b9f5358275898 100644 --- a/packages/component_code_gen/README.md +++ b/packages/component_code_gen/README.md @@ -1,62 +1,5 @@ -# AI Code Gen for Pipedream Components - -Generate components using OpenAI GPT. - -### Installation - -1. Install [gh cli](https://github.com/cli/cli#installation) - -2. Install [asdf package manager](https://asdf-vm.com/guide/getting-started.html#getting-started). - -3. Run `cd packages/component_code_gen` - -4. Run `asdf install` - -5. Run `poetry install` - -### Setup - -#### Create a `.env` file - -`cp .env.example .env` - -#### Modify the `.env` file to use your own keys: - -1. Add these API Keys to your new `.env` file: - - - BROWSERLESS_API_KEY=api_key # required when parsing URL links - - SUPABASE_URL=https://your-project-url.supabase.co # get this from Supabase Project Settings -> API - - SUPABASE_API_KEY=service_role_key # get this from Supabase Project Settings -> API - -2. Add Azure OpenAI API keys (gpt-4-32k) - - - OPENAI_API_TYPE=azure - - OPENAI_DEPLOYMENT_NAME=deployment-name - - OPENAI_EMBEDDINGS_DEPLOYMENT_NAME=embeddings-deployment-name - - OPENAI_API_VERSION=2023-05-15 - - OPENAI_API_BASE=https://resource-name.openai.azure.com - - OPENAI_API_KEY=azure-api-key - - OPENAI_MODEL=gpt-4-32k - -### Running - -#### GitHub Issues - -The command below will parse through GitHub issue description and generate code for the list of components. - -``` -poetry run python main.py --issue issue_number -``` - -#### Draft PRs - -The default behaviour is to automatically create a branch and submit a Draft PR. The command above is equivalent to: - -``` -poetry run python main.py --issue issue_number --skip-pr=False -``` - -If you don't want to submit a Draft PR and keep the changes local, pass in `--skip-pr` (which sets it to `True`). +remove packages +igkore cuazom path #### Output Dir From 817ac5d379b2f0d7ce809d69798d50a416afad12 Mon Sep 17 00:00:00 2001 From: samss084 <131480264+samss084@users.noreply.github.com> Date: Wed, 19 Feb 2025 18:35:34 -0500 Subject: [PATCH 2/2] Update and rename README.md to .md --- packages/component_code_gen/{README.md => .md} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename packages/component_code_gen/{README.md => .md} (85%) diff --git a/packages/component_code_gen/README.md b/packages/component_code_gen/.md similarity index 85% rename from packages/component_code_gen/README.md rename to packages/component_code_gen/.md index b9f5358275898..aa42f29c38b61 100644 --- a/packages/component_code_gen/README.md +++ b/packages/component_code_gen/.md @@ -1,5 +1,6 @@ -remove packages -igkore cuazom path +run pipedream packages +run pipedream configurations +run pipedream settings #### Output Dir