diff --git a/.github/workflows/pr-agent-review.yaml b/.github/workflows/pr-agent-review.yaml index 9dcf59b8..eb811a38 100644 --- a/.github/workflows/pr-agent-review.yaml +++ b/.github/workflows/pr-agent-review.yaml @@ -21,7 +21,10 @@ jobs: id: pragent uses: Codium-ai/pr-agent@main env: - OPENAI_KEY: ${{ secrets.OPENAI_KEY }} - OPENAI_ORG: ${{ secrets.OPENAI_ORG }} # optional + OPENAI.KEY: ${{ secrets.OPENAI_KEY }} + OPENAI.ORG: ${{ secrets.OPENAI_ORG }} # optional GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PINECONE.API_KEY: ${{ secrets.PINECONE_API_KEY }} + PINECONE.ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }} + diff --git a/pr_agent/agent/pr_agent.py b/pr_agent/agent/pr_agent.py index 9f0886d8..07c34c51 100644 --- a/pr_agent/agent/pr_agent.py +++ b/pr_agent/agent/pr_agent.py @@ -78,7 +78,7 @@ class PRAgent: elif action in command2class: if notify: notify() - await command2class[action](pr_url, *args).run() + await command2class[action](pr_url, args=args).run() else: return False return True diff --git a/pr_agent/settings/.secrets_template.toml b/pr_agent/settings/.secrets_template.toml index 0ac75519..16c121ff 100644 --- a/pr_agent/settings/.secrets_template.toml +++ b/pr_agent/settings/.secrets_template.toml @@ -16,6 +16,10 @@ key = "" # Acquire through https://platform.openai.com #deployment_id = "" # The deployment name you chose when you deployed the engine #fallback_deployments = [] # For each fallback model specified in configuration.toml in the [config] section, specify the appropriate deployment_id +[pinecone] +api_key = "..." +environment = "gcp-starter" + [anthropic] key = "" # Optional, uncomment if you want to use Anthropic. Acquire through https://www.anthropic.com/