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 仓库派生的,但不是官方的。

相关推荐
迦蓝叶3 小时前
JAiRouter 配置文件重构纪实 ——基于单一职责原则的模块化拆分与内聚性提升
java·网关·ai·重构·openai·prometheus·单一职责原则
安替-AnTi9 小时前
AI急速搭建网站:Gemini、Bolt或Jules、GitHub、Cloudflare Pages实战全流程!
ai·github·cloudflare·bolt·gemini·快速搭建网站
Learn Beyond Limits11 小时前
Transfer Learning|迁移学习
人工智能·python·深度学习·神经网络·机器学习·ai·吴恩达
不知名raver(学python版)12 小时前
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR!
前端·npm·node.js
森之鸟13 小时前
寻找AI——初识3D建模AI
ai·aigc
惜.己13 小时前
针对nvm不能导致npm和node生效的解决办法
前端·npm·node.js
豌豆花下猫14 小时前
Python 潮流周刊#118:Python 异步为何不够流行?(摘要)
后端·python·ai
YF云飞15 小时前
数据仓库进化:Agent驱动数智化新范式
数据仓库·人工智能·ai
CodeCraft Studio17 小时前
Aspose.Words for .NET 25.7:支持自建大语言模型(LLM),实现更安全灵活的AI文档处理功能
人工智能·ai·语言模型·llm·.net·智能文档处理·aspose.word
上单带刀不带妹17 小时前
Node.js 的模块化规范是什么?CommonJS 和 ES6 模块有什么区别?
前端·node.js·es6·模块化