Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ feat(api.ts): add support for Azure OpenAI API #167

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Commits on May 6, 2023

  1. ✨ feat(api.ts): add support for Azure OpenAI API

    The Azure OpenAI API is now supported in addition to the OpenAI API. The API type can be specified in the configuration file using the OPENAI_API_TYPE key. If the key is not specified, the default value is 'openai'. The AzureOpenAIApi class is added to the utils folder to handle the Azure OpenAI API calls. The createChatCompletion method is implemented in the AzureOpenAIApi class to handle the chat completion requests. The method is called in the generateCommitMessage method in the OpenAi class if the apiType is set to 'azure'.
    takuya-o committed May 6, 2023
    Configuration menu
    Copy the full SHA
    6519441 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2023

  1. 🐛 fix(AzureOpenAI.ts): fix import path for AxiosRequestConfig to avoi…

    …d conflicts with openai's axios dependency
    
    In AzureOpenAI.ts, the import path for AxiosRequestConfig was changed to avoid conflicts with openai's axios dependency, which was causing lint errors.
    takuya-o committed May 7, 2023
    Configuration menu
    Copy the full SHA
    539dc7d View commit details
    Browse the repository at this point in the history
  2. 🔧 fix(AzureOpenAI.ts): import RequiredError to fix error handling and…

    … remove commented out debug code
    
    The RequiredError class was not being imported from the openai/dist/base module, causing errors to be thrown incorrectly. This has been fixed by importing the RequiredError class. Debug code has been removed and comments have been updated to reflect the changes made.
    takuya-o committed May 7, 2023
    Configuration menu
    Copy the full SHA
    a78d61d View commit details
    Browse the repository at this point in the history
  3. 🔇 chore(AzureOpenAI.ts): remove console.log statement and translate J…

    …apanese comment
    
    The commented console.log statement was removed to improve code cleanliness.
    takuya-o committed May 7, 2023
    Configuration menu
    Copy the full SHA
    7613473 View commit details
    Browse the repository at this point in the history

Commits on May 9, 2023

  1. 🔥 refactoring(api.ts, AzureOpenAI.ts): Leverage openai npm package

    🐛 fix(config.ts): API Key string validation
    takuya-o committed May 9, 2023
    Configuration menu
    Copy the full SHA
    3b8e436 View commit details
    Browse the repository at this point in the history