Update Azure OpenAI npm Package to 2023-12-01-preview Version

**题意:**将 Azure OpenAI npm 包更新到 2023-12-01-preview 版本

问题背景:

I am currently using the azure-openai npm package in my project with version 2023-03-15-preview . As per the latest updates, version 2023-12-01-preview is available and brings several improvements, including support for DALL-E 3.0 and enhanced content filtering.So, i want to update my package.

我目前在项目中使用的是 `azure-openai` npm 包的 `2023-03-15-preview` 版本。根据最新更新,`2023-12-01-preview` 版本已经发布,并带来了多项改进,包括对 DALL-E 3.0 的支持和增强的内容过滤功能。因此,我想更新我的包。

My nodejs version is 18.13 and my azure-openai version is "^0.9.4". azure-openai package use 2023-03-15-preview. I read that in /node_modules/azure-openai/README.md . This README.md file mention they are used **2023-03-15-preview/**inference.json. Now, I want to update 2023-03-15-preview with 2023-12-01-preview.So where can i change or update this app-version.

我的 Node.js 版本是 18.13,`azure-openai` 版本是 `^0.9.4`。`azure-openai` 包使用的是 `2023-03-15-preview` 版本。我在 `/node_modules/azure-openai/README.md` 文件中看到这一点。这个 README.md 文件提到他们使用了 **2023-03-15-preview/** 的 `inference.json`。现在,我想将 `2023-03-15-preview` 更新为 `2023-12-01-preview`。那么,我应该在哪里更改或更新这个应用版本?

问题解决:

You should move to the official library, which is this one: @azure/openai - npm

You have several demos using it accessible from the documentation here: Azure OpenAI client library for JavaScript | Microsoft Learn

The other one is a fork from openai repo but not the official one.

你应该迁移到官方库,即这个:`@azure/openai - npm`。

你可以从这里的文档中访问多个使用它的演示: [Azure OpenAI client library for JavaScript | Microsoft Learn](https://learn.microsoft.com/azure/openai/).

之前使用的库是从 OpenAI 仓库派生的,但不是官方的。

相关推荐
哥布林学者1 天前
吴恩达深度学习课程五:自然语言处理 第一周:循环神经网络 (三)语言模型
深度学习·ai
Leinwin1 天前
Azure语音服务(国际版)系列升级,解锁语音交互新体验
microsoft·azure
营销操盘手阿泽1 天前
从流量红利到构建长期AI数据资产的深度共建指南
ai
在西安放羊的牛油果1 天前
浅谈 import.meta.env 和 process.env 的区别
前端·vue.js·node.js
鹏北海1 天前
从弹窗变胖到 npm 依赖管理:一次完整的问题排查记录
前端·npm·node.js
cute_ming1 天前
从 Node.js + TypeScript 无缝切换到 Python 的最佳实践
python·typescript·node.js
熊猫钓鱼>_>1 天前
AI 加 CloudBase 帮我从零快速打造儿童英语故事学习乐园
ide·人工智能·ai·mcp·codebuddy·cloudbase·ai toolkit
向量引擎1 天前
[架构师级] 压榨GPT-5.2与Sora 2的极限性能:从单体调用到高并发多模态Agent集群的演进之路(附全套Python源码与性能调优方案)
开发语言·人工智能·python·gpt·ai·ai写作·api调用
CoderJia程序员甲1 天前
GitHub 热榜项目 - 日榜(2026-1-6)
ai·开源·大模型·github·ai教程
安得权1 天前
Azure Dataverse 权限设计学习
学习·flask·azure