azure-openai-node
azure-openai-node copied to clipboard
This is a fork of the official OpenAI Node.js library that has been adapted to support the Azure OpenAI API. The objective of this library is to minimize the changes required to migrate from the offic...
Hi, I've received the following email from Azure stating that the preview version used by this library (`2023-03-15-preview`) will be retired on 2nd April 2024. Can the library be updated...
Hi. I am a beginner in programming. I am using your wonderful package with my tools. This package made the transition to Azure Open AI a smooth one. However, the...
Hi, when using this library, I encountered following problem: My Code: ```node const handler = async (req: NextRequest) => { const reqBody = await req.json(); const openAIApi = new OpenAIApi(...
Your readme is wrong, come on!! Incredbile ```javascript import "dotenv/config"; config({ path: ".env.local" }); import { Configuration, OpenAIApi } from "azure-openai"; import { OpenAIStream, StreamingTextResponse } from "ai"; import {...
The current function createImage is not working because the POST URL for image generation is not complete. (api.js, Line 360): const localVarPath = '/images/generations' Correct POST URL should be in...
While this library is at version 3.2.0, OpenAI's own has already evolved to 3.3.0. Is there a commitment by Microsoft Azure to maintain parity with OpenAI's node offering within any...
I'm using several models in my code, with a deployment for each, so we can't use `config.deploymentName`. Azure doesn't allow `.` character in deployment names. I have to send `gpt-35-turbo`...
When talking to my Azure deployment and using streaming mode, I've found that the tokens being returned are out of order. They're all there, just not in the right sequence....
Hi, Your example request in readme results in error 400 bad request. Correct notation is max_tokens, presence_penalty, etc.: optional, you can also set your Azure deploymentName by replacing your model...