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
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🐛 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.
  • Loading branch information
takuya-o committed May 7, 2023
commit 539dc7d7fbe2f95a3acedf15678ebf98a1c8ff54
6 changes: 2 additions & 4 deletions src/utils/AzureOpenAI.ts
Original file line number Diff line number Diff line change
@@ -5,14 +5,12 @@
* Note: Only make what is necessary for opencommit
*/

import {
BaseAPI,
} from 'openai/dist/base';
import {
CreateChatCompletionRequest,
Configuration,
} from "openai";
import { AxiosRequestConfig} from 'axios';
import { BaseAPI } from 'openai/dist/base';
import { AxiosRequestConfig} from 'openai/node_modules/axios';

export class AzureOpenAIApi extends BaseAPI {
constructor(configuration: Configuration) {