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] Support for Azure OpenAI endpoints #1081

Open
Asimov4 opened this issue Jan 20, 2025 · 2 comments
Open

[Feat] Support for Azure OpenAI endpoints #1081

Asimov4 opened this issue Jan 20, 2025 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Asimov4
Copy link

Asimov4 commented Jan 20, 2025

Problem Description
I would like to be able to use Extract with an Azure OpenAI endpoint.

Proposed Feature
It would be nice to have the ability to configure an alternative set of keys for Azure.

@Asimov4
Copy link
Author

Asimov4 commented Jan 20, 2025

Actually, I was able to get extract working seamlessly on a fork. All I had to do was replace this:

import OpenAI from "openai";

const openai = new OpenAI();

With this everywhere:

import { AzureOpenAI } from "openai";

const openai = new AzureOpenAI({
  apiKey: process.env.AZURE_OPENAI_CREDENTIAL,
  endpoint: process.env.AZURE_OPENAI_ENDPOINT,
  apiVersion: process.env.AZURE_OPENAI_VERSION,
});

@hqman
Copy link

hqman commented Jan 23, 2025

I also need this feature.

@nickscamara nickscamara added the enhancement New feature or request label Jan 25, 2025
@nickscamara nickscamara self-assigned this Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants