ai-pr-reviewer
ai-pr-reviewer copied to clipboard
Added support for Azure bot
What:
Added langchain
package that is used in AzureBot
for communicating with Azure API. Based on provided configuration AzureBot
will be used as Bot.
Why: This fixes issue #382. Enable to use coderabbitai with Azure API.
Summary by CodeRabbit
-
New Features
- Introduced an
AzureBot
class for integrating with Azure services and OpenAI chat model. - Added new interfaces for bot communication and protocol standardization.
- Enhanced application configuration to support Azure API parameters.
- Introduced an
-
Refactor
- Updated the
Bot
class to implement the newBotProtocol
interface. - Refactored code to use
BotProtocol
in place of directBot
references, improving flexibility and maintainability.
- Updated the
Summary by CodeRabbit
- New Feature: Added support for Azure bot. Users can now configure the bot to use Azure API by specifying the instance name, deployment name, and version.
- Refactor: Introduced
BotProtocol
interface to improve flexibility and maintainability. The code can now handle different types of bots, not just the originalBot
. - Chore: Updated dependencies in the
package.json
file and added theskipLibCheck
option to the TypeScript configuration file for better development experience.