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

相关推荐
猿来如此呀19 分钟前
运行npm install 时,卡在sill idealTree buildDeps没有反应
前端·npm·node.js
hw_happy25 分钟前
解决 npm ERR! node-sass 和 gyp ERR! node-gyp 报错问题
前端·npm·sass
千寻简1 小时前
Cursor免费 GPT-4 IDE 工具的保姆级使用教程
java·运维·ide·ai
GPUStack2 小时前
GPUStack 0.2:开箱即用的分布式推理、CPU推理和调度策略
ai·大模型·aigc·gpu·genai·gpu集群
八了个戒3 小时前
Koa (下一代web框架) 【Node.js进阶】
前端·node.js
virtaitech12 小时前
OrionX GPU算力池助力AI OCR场景应用
人工智能·ai·ocr·gpu算力·ai算力资源池化
谢尔登13 小时前
【Node.js】RabbitMQ 不同交换器类型的使用
node.js·rabbitmq·ruby
weixin_4410183515 小时前
webpack的热更新原理
前端·webpack·node.js
懒大王952716 小时前
Node.js 多版本安装与切换指南
node.js
YesPMP平台官方账号1 天前
AI+教育|拥抱AI智能科技,让课堂更生动高效
人工智能·科技·物联网·ai·智慧校园·教育