openai-quickstart-node 是一个旨在帮助用户快速上手 OpenAI API 的示例聊天应用程序。该项目使用了 Chat Completions API,旨在创建一个通用的流式聊天应用程序,并提供用户界面,可以直观地展示消息的流动方式。这个项目非常适合希望探索 OpenAI 技术并将其整合到自己应用程序中的开发者。 基本请求 为了发送第一
通过代理翻墙,使用ChatGPT时,发现官方提供一些案例展示,于是就下载看一下,按照操作步骤启动服务,使用案例时提示错误,最后发现是因为在国内使用代理的原因,需要在generate.js中配置代理,详情如下。 1、 获取案例代码并启动服务。 地址:https://github.com/openai/openai-quickstart-node ...
$ cd openai-quickstart-nodeInstall the requirements $ npm installMake a copy of the example environment variables file On Linux systems: $ cp .env.example .env On Windows: $ copy .env.example .envAdd your API key to the newly created .env file Run...
Node.js example app from the OpenAI API quickstart tutorial - openai-quickstart-node/moderation at master · openai/openai-quickstart-node
通过代理翻墙,使用ChatGPT时,发现官方提供一些案例展示,于是就下载看一下,按照操作步骤启动服务,使用案例时提示错误,最后发现是因为在国内使用代理的原因,需要在generate.js中配置代理,详情如下。 1、 获取案例代码并启动服务。 地址:https://github.com/openai/openai-quickstart-node ...
.github assistants batch chat_completions embeddings fine_tuning images index.js moderation .env.example .gitignore LICENSE README.md package-lock.json package.jsonBreadcrumbs openai-quickstart-node / images/ Directory actions More optionsLatest commit...
地址:https://github.com/openai/openai-quickstart-node 代码详情 启动界面 启动服务 2、 使用案例网页发送请求服务时,后台提示错误 提示错误:Error with OpenAI API request: connect ETIMEDOUT 108.160.161.20:443 错误信息 3、 配置代理服务,解决上面问题 这里是因为代理服务器问题,需要在openai-quickstart-node-mast...
To send your first API request with the [OpenAI Node SDK](https://github.com/openai/openai-node), make sure you have the right [dependencies installed](https://platform.openai.com/docs/quickstart?context=node) and then run the following code: 7 + - Chat Completions 8 + - Assistants ...
$ cd openai-quickstart-nodeInstall the requirements $ npm installMake a copy of the example environment variables file On Linux systems: $ cp .env.example .env On Windows: $ copy .env.example .envAdd your API key to the newly created .env file Run...
Felix-xy/openai-quickstart-node is licensed under the MIT License A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code. ...