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 小时前
解决:npm install报错,reason: certificate has expired
前端·npm·node.js
LucianaiB6 小时前
使用GpuGeek高效完成LLaMA大模型微调:实践与心得分享
ai·llama·ai自动化·gpugeek
山河故人1637 小时前
uniapp使用npm下载
前端·npm·uni-app
素雪风华8 小时前
构建RAG混合开发---PythonAI+JavaEE+Vue.js前端的实践
java·vue.js·python·ai·语言模型·llms·qwen千问大模型
程序员拂雨10 小时前
Next.js 知识框架总结
node.js
哎哟喂_!11 小时前
Node.js 循环依赖问题详解:原理、案例与解决方案
前端·chrome·node.js
Coding的叶子12 小时前
Node.js 安装 + React Flow 快速入门:环境安装与项目搭建
react.js·node.js·react flow·fgai·react agent
胡玉洋14 小时前
从新手到高手:全面解析 AI 时代的「魔法咒语」——Prompt
人工智能·ai·prompt·transformer·协议
GISer_Jing14 小时前
编译原理AST&以Babel为例进行解读、Webpack中自定义loader与plugin
前端·webpack·node.js
GISer_Jing14 小时前
Webpack中Compiler详解以及自定义loader和plugin详解
前端·webpack·node.js