庆云古诗词

庆云古诗词

OpenAI最新官方ChatGPT聊天插件接口《插件示例demo》全网最详细中英文实用指南和教程,助你零基础快速轻松掌握全新技术(四)(附源码)

互联资讯 0

2023年11月20日 每日一猜答案: 答案:ABC
每日一猜答案分析:

openipa,openicon,open 平台,openai最新消息
  • 前言
  • Introduction 导言
  • Learn how to build a simple todo list plugin with no auth 了解如何构建一个简单的待办事项列表插件,无需授权
  • Learn how to build a simple todo list plugin with ser【【微信】】 了解如何构建一个简单的待办事项列表插件与服务级别身份验证
  • Learn how to build a simple sports stats plugin 了解如何构建一个简单的体育统计插件
  • Learn how to build a semantic search and retrie【【微信】】 了解如何构建语义搜索和检索插件
  • 其它资料下载

在ChatGPT中学习构建插件是一个有趣和富有挑战性的过程。通过使用官方提供的四个例子,我们可以逐步了解如何构建ChatGPT插件,从而更好地理解插件的规范使用。也希望能帮助到大家快速掌握构建插件的各种技能和工具。

To get started building, we are making a【【微信】】 plugins that cover different authentication schemas and use cases. From our simple no authentication todo list plugin to the more powerful retrie【【微信】】, these examples provide a glimpse into what we hope to make possible with plugins. 为了开始构建,我们提供了一组简单的插件,涵盖了不同的身份验证模式和用例。从我们简单的无身份验证的todo列表插件到更强大的检索插件,这些示例提供了我们希望通过插件实现的东西的一瞥。

【【淘密令】】【【微信】】, you can run the plugin locally on your computer or through a cloud de【【微信】】 environment like GitHub Codespaces, Replit, or CodeSandbox. 在开发过程中,您可以在计算机上本地运行插件,也可以通过GitHub Codespaces,Replit或CodeSandbox等云开发环境运行插件。

To start, define an file with the following fields: 首先,使用以下字段定义一个 文件:

Note the should be the actual hostname of your plugin server. 注意 应该是插件服务器的实际主机名。

Next, we can define the API endpoints to create, delete, and fetch todo list items for a specific user. 接下来,我们可以定义API端点来为特定用户创建、删除和获取待办事项列表项。

Last, we need to set up and define a OpenAPI specification to match the endpoints defined on our local or remote server. 【【微信】】 the full functionality of your API 【【微信】】n instead choose to let ChatGPT ha【【微信】】n functionality. 最后,我们需要设置和定义OpenAPI规范,以匹配本地或远程服务器上定义的端点。您不需要通过规范公开API的全部功能,而是可以选择让ChatGPT仅访问某些功能。

There are also many tools that will automatically turn your ser【【微信】】o an OpenAPI specification so you don’t need to do it manually. In the case of the Python code above, 【【微信】】ion will look like: 还有许多工具可以自动将服务器定义代码转换为OpenAPI规范,因此您不需要手动执行此操作。在上面的Python代码中,OpenAPI规范看起来像这样:

To start, define an file with the following fields: 首先,使用以下字段定义一个 文件:

Notice that the 【【微信】】equired for ser【【微信】】entication plugins. The token is generated during the plugin installation process in the ChatGPT web UI. 请注意,服务级别身份验证插件需要验证令牌。令牌是在ChatGPT Web UI中的插件安装过程中生成的。

Next, we can define the API endpoints to create, delete, and fetch todo list items for a specific user. The endpoints also check that the user is authenticated. 接下来,我们可以定义API端点来为特定用户创建、删除和获取待办事项列表项。端点还检查用户是否经过身份验证。

Last, we need to set up and define a OpenAPI specification to match the endpoints defined on our local or remote server. 【【微信】】, 【【微信】】ion would look the same regardless of the authentication method. Using an automatic OpenAPI generator will reduce the chance of errors when creating your OpenAPI specification so it is worth exploring the options. 最后,我们需要设置和定义OpenAPI规范,以匹配本地或远程服务器上定义的端点。一般来说,OpenAPI规范看起来都是一样的,与身份验证方法无关。使用自动OpenAPI生成器将减少创建OpenAPI规范时出错的可能性,因此值得探索这些选项。

This plugin is an example of a simple sports stats API. Please keep in mind our domain policy and usage policies when considering what to build. 这个插件是一个简单的体育统计API的例子。在考虑构建什么时,请记住我们的域策略和使用策略。

To start, define an file with the following fields: 首先,使用以下字段定义一个 文件:

Note the should be the actual hostname of your plugin server. 注意 应该是插件服务器的实际主机名。

Next, we define a mock API for a simple sports ser【【微信】】. 接下来,我们为一个简单的体育服务插件定义一个模拟API。

Last, we define our OpenAPI specification: 最后,我们定义OpenAPI规范:

The ChatGPT retrie【【微信】】 is a more fully featured code example. The scope of the plugin is large, so we encourage you to read through the code to see what a more ad【【微信】】e. ChatGPT检索插件是一个功能更全的代码示例。这个插件的范围很大,所以我们鼓励你通读代码,看看更高级的插件是什么样子的。

The retrie【【微信】】cludes: 检索插件包括:

  • Support for multiple 【【微信】】ders 支持多个矢量数据库提供程序
  • All 4 different authentication methods 所有4种不同的身份验证方法
  • Multiple different API features 多种不同的API功能

如果大家想继续了解人工智能相关学习路线和知识体系,欢迎大家翻阅我的另外一篇博客《重磅 | 完备的人工智能AI 学习――基础知识学习路线,所有资料免关注免套路直接网盘下载》 这篇博客参考了Github知名开源平台,AI技术平台以及相关领域专家:Datawhale,ApacheCN,AI有道和黄海广博士等约有近100G相关资料,希望能帮助到所有小伙伴们。



OpenAI最新官方ChatGPT聊天插件接口《插件安全审查流程》全网最详细中英文实用指南和教程,助你零基础快速轻松掌握全新技术(六)(附源码)

openai 官网,openinapp,openipa,openicon
  • 前言
  • Plugin review process 插件审查流程
  • What we are looking for in a plugin 我们正在寻找一个插件
  • Plugin states 插件状态
  • Types of users 用户类型
  • Submit a plugin for review 提交一个插件进行审核
  • 其它资料下载

在 ChatGPT 中,插件审核流程是不可或缺的一环。因为它直接关系到系统的稳定性和用户体验,OpenAI也一直以用户为中心,注重保障用户的信息安全和使用体验。所以目前OpenAI对于插件的审核标准非常严格,但这也保证了插件的质量和可靠性。

虽然目前OpenAI限制了提交审核数量,但未来随着审核逐渐放开,将会有越来越多的高质量插件面世,同时让ChatGPT兼容越来越丰富的功能,逐步提高用户使用满意度。

We are in the early stages of building the plugin store, this page outlines the basic o【【微信】】ng about the plugin review process, and what early phases of the plugin re【【微信】】ike. 我们正处于构建插件商店的早期阶段,本页面概述了我们如何考虑插件审查过程的基本概述,以及插件审查过程的早期阶段是什么样子的。

The plugin re【【微信】】e significantly o【【微信】】. We are open to feedback about how to impro【【微信】】 building plugins. 插件审查过程将随着时间的推移发生重大变化。我们愿意接受有关如何改进构建插件的过程的反馈。

The purpose of the re【【微信】】 to ensure that plugins on ChatGPT are safe, pro【【微信】】ity, and pro【【微信】】xperience. Long-term, we expect it to be routine to go through the re【【微信】】 we formalize it. 审查过程的目的是确保ChatGPT上的插件是安全的,提供有用的功能,并提供高质量的用户体验。从长远来看,我们希望在我们正式确定审查过程时,审查过程将成为例行程序。

In the immediate term, we are prioritizing plugins which deli【【微信】】, magical experiences for users, which would not ha【【微信】】t the unique capabilities of large language models. 在短期内,我们将优先考虑为用户提供新的神奇体验的插件,如果没有大型语言模型的独特功能,这是不可能的。

So far, some categories of plugins that ha【【微信】】 are: 到目前为止,最神奇的插件类别是:

  • Retrie【【微信】】 or otherwise hard-to-search knowledge sources (searching o【【微信】】, searching a user’s docs or another proprietary database). 检索用户特定的或难以搜索的知识源(搜索Slack,搜索用户的文档或其他专有数据库)。
  • Plugins that synergize well with other plugins (asking the model to plan a weekend for you, and ha【【微信】】ge of flight/hotel search with dinner reser【【微信】】). 与其他插件协同工作的插件(要求模型为您计划周末,并让模型将航班/酒店搜索与晚餐预订搜索混合使用)。
  • 【【淘密令】】【【微信】】nal abilities (Wolfram, OpenAI Code Interpreter, etc). 给予模型计算能力的插件(Wolfram、OpenAI代码解释器等)。
  • Plugins that introduce new ways of using ChatGPT, like games. 引入新的ChatGPT使用方式的插件,如游戏。

When de【【微信】】, the plugin can be in one of several statuses, indicating where it is along the review process. Right now, there are only a couple of plugin statuses, and the re【【微信】】 largely manual. We expect this to change as the plugins system evolves. 当开发插件时,插件可以处于几种状态之一,指示它在审查过程中的位置。现在,只有几个插件状态,并且审查过程主要是手动的。我们希望这会随着插件系统的发展而改变。

STATUS 状态DESCRIPTION描述DE【【微信】】 开发者使用USERS ACCESS 用户使用
In de【【微信】】 开发中The default status that a plugin starts out in.插件启动时的默认状态。15
Approved 通过【【微信】】 plugin, and has determined that the plugin is appro【【微信】】udience of users.OpenAI已经审查了该插件,并确定该插件已被批准供普通用户使用。UnlimitedUnlimited
Banned 禁止【【微信】】 plugin, and has determined that the plugin should be banned. OpenAI已经审查了该插件,并确定该插件应该被禁止。

Right now there are three categories of users that we talk about when it comes to plugins access. We also expect this to change as the plugins system evolves. 现在,当涉及到插件访问时,我们谈论的用户有三类。我们也希望随着插件系统的发展而改变。

USER TYPE 用户类型DESCRIPTION 描述
Plugin users 插件用户ChatGPT users who ha【【微信】】lugins that have gone through our re【【微信】】n approved for general use. These users must be ChatGPT Plus subscribers. Only a limited number of users ha【【微信】】ay, but we hope to roll out to all ChatGPT Plus users o【【微信】】.ChatGPT用户,他们有权访问经过我们审核流程并被批准用于一般用途的插件。这些用户必须是ChatGPT Plus订户。目前只有有限数量的用户可以访问插件,但我们希望随着时间的推移向所有ChatGPT Plus用户推广。
Plugin de【【微信】】 插件开发者ChatGPT users who ha【【微信】】o develop, use, test, etc., plugins that are in de【【微信】】. There are a small number of these users as of today. We expect this number to grow 【【微信】】, and we expect there to be an explicit process (rather than a waitlist) for opting-into becoming a ChatGPT plugin de【【微信】】imilar to other app stores.被赋予开发、使用、测试等能力的ChatGPT用户正在开发的插件。到目前为止,这些用户的数量很少。我们预计这个数字将增长非常大,我们希望有一个明确的过程(而不是等待名单)选择成为ChatGPT插件开发人员,类似于其他应用程序商店。
Normal ChatGPT users 普通ChatGPT用户Right now, normal ChatGPT users (including Plus subscribers) don’t ha【【微信】】. We expect all ChatGPT Plus subscribers to ha【【微信】】, but as of today access has only been granted to a small number of users.目前,普通ChatGPT用户(包括Plus订阅者)没有插件访问权限。我们希望所有ChatGPT Plus订阅者最终都能访问,但截至目前,只有少数用户获得了访问权限。

You can expect to hear back about a plugin you submit for re【【微信】】 for the batch. We plan to re【【微信】】g basis in the future. 您可以期待在批次截止日期后14天收到有关您提交审查的插件的回复。我们计划在未来滚动地审查插件。

We are currently re【【微信】】atches while we scale up our processes. Due to the manual nature of the re【【微信】】ited rollout, please be patient while we re【【微信】】. You can view the requirements for a plugin submission using the plugin submission form. 我们目前正在批量审查新的插件,同时扩大我们的流程。由于审查过程的手动性质和我们有限的推出,请耐心等待我们审查您的插件。您可以使用插件提交表单查看插件提交的要求。

If your plugin is not selected in this round, we encourage you to get feedback from users about what can be done to impro【【微信】】. 如果你的插件在这一轮中没有被选中,我们鼓励你从用户那里获得反馈,了解如何改进你的插件。

如果大家想继续了解人工智能相关学习路线和知识体系,欢迎大家翻阅我的另外一篇博客《重磅 | 完备的人工智能AI 学习――基础知识学习路线,所有资料免关注免套路直接网盘下载》 这篇博客参考了Github知名开源平台,AI技术平台以及相关领域专家:Datawhale,ApacheCN,AI有道和黄海广博士等约有近100G相关资料,希望能帮助到所有小伙伴们。