Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Api endpoint change #475

Closed
Klraex3 wants to merge 5 commits into coderabbitai:main from habilelabs:api-endpoint-change
Closed

Conversation

@Klraex3
Copy link

@Klraex3 Klraex3 commented Oct 3, 2023
edited by github-actions bot
Loading

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! 🚀

Copy link
Contributor

github-actions bot commented Oct 3, 2023
edited
Loading

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.

Copy link
Author

Klraex3 commented Oct 3, 2023

PR test comment

@Klraex3 Klraex3 marked this pull request as draft October 3, 2023 09:19
@Klraex3 Klraex3 marked this pull request as draft October 3, 2023 09:19
@Klraex3 Klraex3 marked this pull request as ready for review October 3, 2023 09:20
@Klraex3 Klraex3 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.

Reviewers

1 more reviewer

@github-actions github-actions[bot] github-actions[bot] left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /