coderabbitai / ai-pr-reviewer

AI-based Pull Request Summarizer and Reviewer with Chat Capabilities.
https://coderabbit.ai
MIT License
1.41k stars 256 forks source link

Api endpoint change #475

Closed ParthGuptaHL closed 9 months ago

ParthGuptaHL commented 9 months ago

Added AZURE_OPENAI_API_KEY secrets

Summary by CodeRabbit

New Feature:

🎉 With secrets tucked away, safe and sound,

Our bot's security is now more profound.

The package version takes a leap,

As we sow updates, so shall we reap.

And with flexible API configuration,

We march ahead, towards automation! 🚀

github-actions[bot] commented 9 months ago

Image description CodeRabbit

Walkthrough

This update introduces environment variables for the OpenAI API key, base URL, and version in the GitHub Actions workflow. It also updates the openai-pr-reviewer package version from 0.0.0 to 0.1.0. Lastly, it modifies the apiBaseUrl property of the ChatGPTAPI class to use an environment variable if available.

Changes

Files Summary
.github/workflows/openai-review.yml, .gitignore Added new secrets AZURE_OPENAI_API_KEY, AZURE_OPENAI_API_BASE, and AZURE_OPENAPI_VERSION to the environment variables used in a GitHub Action workflow. Also added AZURE_OPENAI_API_KEY to .gitignore.
package-lock.json, package.json Updated the version of the openai-pr-reviewer package from 0.0.0 to 0.1.0.
src/bot.ts Modified the apiBaseUrl property of the ChatGPTAPI class to check for the presence of a BASE_API_URL environment variable and use its value if available, otherwise falls back to the options.apiBaseUrl value.
ParthGuptaHL commented 9 months ago

PR test comment