Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Api endpoint change #475

Closed

Conversation

ParthGuptaHL
Copy link

@ParthGuptaHL ParthGuptaHL commented Oct 3, 2023

Added AZURE_OPENAI_API_KEY secrets

Summary by CodeRabbit

New Feature:

  • Added new secrets AZURE_OPENAI_API_KEY, AZURE_OPENAI_API_BASE, and AZURE_OPENAPI_VERSION to the GitHub Action workflow for enhanced security.
  • Updated the openai-pr-reviewer package version from 0.0.0 to 0.1.0.
  • Enhanced flexibility in configuring the API base URL in the ChatGPTAPI class.

🎉 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
Copy link
Contributor

github-actions bot commented Oct 3, 2023

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.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image description CodeRabbit

Commits Files that changed from the base of the PR and between 44244a9 and 1222244 commits.
Files selected (5)
  • .github/workflows/openai-review.yml (1)
  • .gitignore (1)
  • package-lock.json (1)
  • package.json (1)
  • src/bot.ts (1)
Files ignored due to filter (1)
  • dist/index.js
Files skipped from review due to trivial changes (5)
  • .github/workflows/openai-review.yml
  • .gitignore
  • package-lock.json
  • package.json
  • src/bot.ts
Review comments generated (0)
  • Review: 0
  • LGTM: 0

Tips

Chat with Image description CodeRabbit Bot (@coderabbitai)

  • Reply on review comments left by this bot to ask follow-up questions. A review comment is a comment on a diff or a file.
  • Invite the bot into a review comment chain by tagging @coderabbitai in a reply.

Code suggestions

  • The bot may make code suggestions, but please review them carefully before committing since the line number ranges may be misaligned.
  • You can edit the comment made by the bot and manually tweak the suggestion if it is slightly off.

Pausing incremental reviews

  • Add @coderabbitai: ignore anywhere in the PR description to pause further reviews from the bot.

@ParthGuptaHL
Copy link
Author

PR test comment

@ParthGuptaHL ParthGuptaHL marked this pull request as draft October 3, 2023 09:19
@ParthGuptaHL ParthGuptaHL marked this pull request as draft October 3, 2023 09:19
@ParthGuptaHL ParthGuptaHL marked this pull request as ready for review October 3, 2023 09:20
@ParthGuptaHL ParthGuptaHL deleted the api-endpoint-change branch October 3, 2023 09:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants