Gathering detailed insights and metrics for @azure/openai
Gathering detailed insights and metrics for @azure/openai
Gathering detailed insights and metrics for @azure/openai
Gathering detailed insights and metrics for @azure/openai
@promptbook/azure-openai
Promptbook: Run AI apps in plain human language across multiple models and platforms
azure-openai
Node.js library for the Azure OpenAI API
@azure/openai-assistants
An isomorphic client library for Azure OpenAI Assistants.
@langchain/azure-openai
Azure SDK for OpenAI integrations for LangChain.js
This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
npm install @azure/openai
Typescript
Module System
Min. Node Version
Node Version
94.6
Supply Chain
99.6
Quality
95.4
Maintenance
100
Vulnerability
100
License
@azure/ai-agents_1.0.0
Updated on Jun 30, 2025
@azure/playwright_1.0.0-beta.1
Updated on Jun 30, 2025
@azure/create-playwright_1.0.0-beta.1
Updated on Jun 30, 2025
@azure/ai-agents_1.0.0-beta.6
Updated on Jun 28, 2025
@azure/eventgrid-systemevents_1.0.1
Updated on Jun 28, 2025
@azure/eventgrid-systemevents_1.0.0
Updated on Jun 26, 2025
TypeScript (86.82%)
JavaScript (12.77%)
PowerShell (0.33%)
Bicep (0.05%)
HTML (0.01%)
Mustache (0.01%)
Total Downloads
12,905,799
Last Day
7,481
Last Week
207,518
Last Month
831,143
Last Year
9,325,493
MIT License
2,208 Stars
19,090 Commits
1,252 Forks
412 Watchers
653 Branches
3,029 Contributors
Updated on Jul 02, 2025
Minified
Minified + Gzipped
Latest Version
2.0.0
Package Id
@azure/openai@2.0.0
Unpacked Size
229.51 kB
Size
20.45 kB
File Count
56
Node Version
18.5.0
Published on
Nov 18, 2024
Cumulative downloads
Total Downloads
Last Day
3.3%
7,481
Compared to previous day
Last Week
0.7%
207,518
Compared to previous week
Last Month
1.5%
831,143
Compared to previous month
Last Year
160.6%
9,325,493
Compared to previous year
2
19
This repository is for the Azure SDK for JavaScript (Node.js & Browser). It contains libraries for the breadth of Azure services. Management libraries are packages that you would use to provision and manage Azure resources. Client libraries are packages that you would use to consume these resources and interact with them.
A few helpful resources to get started are:
/sdk
folder of this repository. The same readme file can be found on the landing page for the package in npm.Each service might have a number of libraries available from each of the following categories:
NOTE: Some of these packages have beta versions. If you need to ensure your code is ready for production, use one of the stable, non-beta packages.
Given an Azure resource already exists, you would use the client libraries to consume it and interact with it. Most of these libraries follow the Azure SDK Design Guidelines for JavaScript & TypeScript and share a number of core functionalities such as retries, logging, transport protocols, authentication protocols, etc. Others will be updated in the near future to follow the guidelines as well.
To get a list of all client libraries that follow the new guidelines, please visit our Azure SDK releases page.
Management libraries enable you to provision and manage Azure resources via the Azure Resource Manager i.e. ARM. You can recognize these libraries by @azure/arm-
in their package names. These are purely auto-generated based on the swagger files that represent the APIs for resource management.
Newer versions of these libraries follow the Azure SDK Design Guidelines for TypeScript. These new versions provide a number of core capabilities that are shared amongst all Azure SDKs, including the intuitive Azure Identity library, an HTTP Pipeline with custom policies, error-handling, distributed tracing, and much more. A few helpful resources to get started with these are:
NOTE: If you are experiencing authentication issues with the management libraries after upgrading certain packages, it's possible that you upgraded to the new versions of SDK without changing the authentication code, please refer to the migration guide mentioned above for proper instructions.
azure-sdk-js
tag.The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described below. You can learn more about data collection and use in the help documentation and Microsoft’s privacy statement. For more information on the data collected by the Azure SDK, please visit the Telemetry Guidelines page.
Telemetry collection is on by default.
To opt out, you can disable telemetry at client construction. Create a custom HTTP pipeline policy that removes the user agent string, and then pass that policy into the additionalPolicies
option during client creation. This will disable telemetry for all methods in the client. Do this for every new client.
The example below uses the @azure/keyvault-secrets
package. In your code, you can replace @azure/keyvault-secrets
with the package you are using.
1import { SecretClient } from "@azure/keyvault-secrets"; 2import { ManagedIdentityCredential } from "@azure/identity"; 3 4function removeUserAgentPolicy() { 5 return { 6 name: "removeUserAgentPolicy", 7 sendRequest(request, next) { 8 request.headers.delete("User-Agent"); 9 return next(request); 10 }, 11 }; 12} 13 14/** 15 * Creates a SecretClient with managed identity authentication and empty user agent 16 * @param keyvaultUri - The URI of the Azure Key Vault 17 * @returns configured SecretClient instance 18 */ 19function createSecretClientWithManagedIdentity( 20 keyvaultUri: string 21): SecretClient { 22 // Create ManagedIdentityCredential for managed identity authentication 23 const credential = new ManagedIdentityCredential(); 24 25 // Create secret client with managed identity and empty user agent 26 const secretClient = new SecretClient(keyvaultUri, credential, { 27 additionalPolicies: [ 28 { 29 position: "perCall", 30 policy: removeUserAgentPolicy(), 31 }, 32 ], 33 }); 34 35 return secretClient; 36} 37 38// Usage example 39const keyvaultUri = "https://your-keyvault-name.vault.azure.net"; 40const secretClient = createSecretClientWithManagedIdentity(keyvaultUri); 41 42// Now you can use the secret client to perform operations 43// For example: 44// const secretValue = await secretClient.getSecret("your-secret-name");
Try our community resources.
Security issues and bugs should be reported privately, via email, to the Microsoft Security Response Center (MSRC) secure@microsoft.com. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Further information, including the MSRC PGP key, can be found in the Security TechCenter.
For details on contributing to this repository, see the contributing guide.
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.
When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repositories using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information, see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
No vulnerabilities found.
Reason
30 commit(s) and 11 issue activity found in the last 90 days -- score normalized to 10
Reason
license file detected
Details
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 28/29 approved changesets -- score normalized to 9
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
binaries present in source code
Details
Reason
branch protection is not maximal on development and all release branches
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More