ai-pr-reviewer icon indicating copy to clipboard operation
ai-pr-reviewer copied to clipboard

Added support for Azure bot

Open PycKamil opened this issue 1 year ago • 2 comments

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.
  • Refactor

    • Updated the Bot class to implement the new BotProtocol interface.
    • Refactored code to use BotProtocol in place of direct Bot references, improving flexibility and maintainability.

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 original Bot.
  • Chore: Updated dependencies in the package.json file and added the skipLibCheck option to the TypeScript configuration file for better development experience.

PycKamil avatar Feb 13 '24 08:02 PycKamil