Skip to content

Commit

Permalink
[OpenAI] Bump API version (#32051)
Browse files Browse the repository at this point in the history
  • Loading branch information
deyaaeldeen authored Dec 4, 2024
1 parent d170eb5 commit ef3f81c
Show file tree
Hide file tree
Showing 77 changed files with 79 additions and 79 deletions.
2 changes: 1 addition & 1 deletion sdk/openai/openai/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Migrated code:
```typescript
import { AzureOpenAI } from "openai";
const deployment = "Your Azure OpenAI deployment";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const options = { azureADTokenProvider, deployment, apiVersion }
const client = new AzureOpenAI(options);
```
Expand Down
6 changes: 3 additions & 3 deletions sdk/openai/openai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ There are several ways to authenticate with the Azure OpenAI service and the rec
import { AzureOpenAI } from "openai";
const deployment = "Your deployment name";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
```
Expand Down Expand Up @@ -126,7 +126,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-4-1106-preview";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
stream: true,
Expand Down Expand Up @@ -182,7 +182,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-35-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
messages: [
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/audioTranscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "whisper-deployment";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.audio.transcriptions.create({
model: "",
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/audioTranslation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "whisper-deployment";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.audio.translations.create({
model: "",
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-4-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });

const batchContent = `{ "custom_id": "request-1", "method": "POST", "url": "/v1/chat/completions", "body": { "model": "${deployment}", "messages": [{ "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What is 2+2?" }] } }`;
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/chatCompletions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-35-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.chat.completions.create({
messages: [
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/codeInterpreter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { AzureOpenAI } from "openai";
import { getBearerTokenProvider, DefaultAzureCredential } from "@azure/identity";

export async function main() {
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
// Create AzureOpenAI client with Microsoft Entra ID
const credential = new DefaultAzureCredential();
const scope = "https://cognitiveservices.azure.com/.default";
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/completions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "text-davinci-003";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.completions.create({ prompt, model: "", max_tokens: 128 });

Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/embeddings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function main() {

const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const deployment = "text-embedding-3-large";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const embeddings = await client.embeddings.create({ input, model: "" });
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "dall-e-3";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const results = await client.images.generate({ prompt, model: "", n, size });

Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/onYourData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-4-1106-preview";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
stream: true,
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/streamChatCompletions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-35-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
messages: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-35-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
messages: [
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/streamCompletions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "text-davinci-003";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.completions.create({
prompt,
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/textToSpeech.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const speechFilePath = process.env["SPEECH_FILE_PATH"] || "<path to save the spe
// Corresponds to your Model deployment within your OpenAI resource
// Navigate to the Azure OpenAI Studio to deploy a model.
const deployment = "tts";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const credential = new DefaultAzureCredential();
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(credential, scope);
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples-dev/toolCall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-4-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.chat.completions.create({
messages: [{ role: "user", content: "What's the weather like in Boston?" }],
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples/cookbook/embeddingLongInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);

// Set the AZURE_OPENAI_ENDPOINT environment variable to the Azure OpenAI endpoint
const client = new AzureOpenAI({ azureADTokenProvider, apiVersion: "2024-10-01-preview" });
const client = new AzureOpenAI({ azureADTokenProvider, apiVersion: "2024-11-01-preview" });

async function getEmbeddings(text, model = deployment) {
const res = await client.embeddings.create({ input: text, model });
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples/cookbook/onYourData/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async function deleteIndexIfExists(indexClient, indexName) {
async function askOpenAI(azureSearchIndexName, messages) {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment: chatDeploymentId, apiVersion });
const events = client.chat.completions.create({
messages,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ app.post("/api/completions", async (req, res) => {
endpoint: process.env.AZURE_OPENAI_ENDPOINT,
deployment: process.env.AZURE_OPENAI_DEPLOYMENT,
azureADTokenProvider,
apiVersion: "2024-10-01-preview",
apiVersion: "2024-11-01-preview",
});

const prompt = req.body.prompt;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const openAI = new AzureOpenAI({
endpoint: process.env.AZURE_OPENAI_ENDPOINT,
deployment: process.env.AZURE_OPENAI_DEPLOYMENT,
azureADTokenProvider,
apiVersion: "2024-10-01-preview",
apiVersion: "2024-11-01-preview",
});

app.get("/api/auth", async (req, res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "whisper-deployment";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.audio.transcriptions.create({
model: "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "whisper-deployment";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.audio.translations.create({
model: "",
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples/v2-beta/javascript/batch.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-4-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });

const batchContent = `{ "custom_id": "request-1", "method": "POST", "url": "/v1/chat/completions", "body": { "model": "${deployment}", "messages": [{ "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What is 2+2?" }] } }`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-35-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.chat.completions.create({
messages: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { AzureOpenAI } = require("openai");
const { getBearerTokenProvider, DefaultAzureCredential } = require("@azure/identity");

async function main() {
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
// Create AzureOpenAI client with Microsoft Entra ID
const credential = new DefaultAzureCredential();
const scope = "https://cognitiveservices.azure.com/.default";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "text-davinci-003";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.completions.create({ prompt, model: "", max_tokens: 128 });

Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples/v2-beta/javascript/embeddings.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function main() {

const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const deployment = "text-embedding-3-large";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const embeddings = await client.embeddings.create({ input, model: "" });
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples/v2-beta/javascript/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "dall-e-3";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const results = await client.images.generate({ prompt, model: "", n, size });

Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples/v2-beta/javascript/onYourData.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-4-1106-preview";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
stream: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-35-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
messages: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-35-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.chat.completions.create({
messages: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "text-davinci-003";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const events = await client.completions.create({
prompt,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const speechFilePath = process.env["SPEECH_FILE_PATH"] || "<path to save the spe
// Corresponds to your Model deployment within your OpenAI resource
// Navigate to the Azure OpenAI Studio to deploy a model.
const deployment = "tts";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const credential = new DefaultAzureCredential();
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(credential, scope);
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples/v2-beta/javascript/toolCall.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-4-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.chat.completions.create({
messages: [{ role: "user", content: "What's the weather like in Boston?" }],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "whisper-deployment";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.audio.transcriptions.create({
model: "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "whisper-deployment";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.audio.translations.create({
model: "",
Expand Down
2 changes: 1 addition & 1 deletion sdk/openai/openai/samples/v2-beta/typescript/src/batch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-4-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });

const batchContent = `{ "custom_id": "request-1", "method": "POST", "url": "/v1/chat/completions", "body": { "model": "${deployment}", "messages": [{ "role": "system", "content": "You are a helpful assistant." }, { "role": "user", "content": "What is 2+2?" }] } }`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function main() {
const scope = "https://cognitiveservices.azure.com/.default";
const azureADTokenProvider = getBearerTokenProvider(new DefaultAzureCredential(), scope);
const deployment = "gpt-35-turbo";
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
const client = new AzureOpenAI({ azureADTokenProvider, deployment, apiVersion });
const result = await client.chat.completions.create({
messages: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { AzureOpenAI } from "openai";
import { getBearerTokenProvider, DefaultAzureCredential } from "@azure/identity";

export async function main() {
const apiVersion = "2024-10-01-preview";
const apiVersion = "2024-11-01-preview";
// Create AzureOpenAI client with Microsoft Entra ID
const credential = new DefaultAzureCredential();
const scope = "https://cognitiveservices.azure.com/.default";
Expand Down
Loading

0 comments on commit ef3f81c

Please sign in to comment.