开始使用ChatGPT导言

  • Introduction 导言
    • Overview 概述
    • Key concepts 关键概念
    • Prompts and completions 提示和完成
    • Tokens 标记/符号
    • Models 模型
    • Next steps 下一步步骤
  • 其它资料下载

Introduction 导言

Overview 概述

The OpenAI API can be applied to virtually any task that involves understanding or generating natural language or code. We offer a spectrum of models with different levels of power suitable for different tasks, as well as the ability to fine-tune your own custom models. These models can be used for everything from content generation to semantic search and classification.
OpenAI API可以应用于几乎任何涉及理解或生成自然语言或代码的任务。我们提供了一系列适合不同任务的不同功率级别的模型,并能够微调您自己的定制模型。这些模型可以用于从内容生成到语义搜索和分类的所有方面。

Key concepts 关键概念

We recommend completing our quickstart tutorial to get acquainted with key concepts through a hands-on, interactive example.
我们建议完成快速入门教程,通过一个动手的交互式示例来熟悉关键概念。

Quickstart tutorial 官方快速入门教程
Learn by building a quick sample application
通过构建快速示例应用程序来学习

Prompts and completions 提示和完成

The completions endpoint is at the center of our API. It provides a simple interface to our models that is extremely flexible and powerful. You input some text as a prompt, and the model will generate a text completion that attempts to match whatever context or pattern you gave it. For example, if you give the API the prompt, “Write a tagline for an ice cream shop”, it will return a completion like “We serve up smiles with every scoop!”
补全端点是我们API的核心。它为我们的模型提供了一个简单的接口,但非常灵活和强大。您输入一些文本作为提示,模型将生成一个完成文本,尝试匹配您提供的任何上下文或模式。例如,如果您向API提供提示“为冰淇淋店写一个标语”,它将返回类似“我们为每一勺都提供微笑!”

Designing your prompt is essentially how you “program” the model, usually by providing some instructions or a few examples. This is different from most other NLP services which are designed for a single task, such as sentiment classification or named entity recognition. Instead, the completions endpoint can be used for virtually any task including content or code generation, summarization, expansion, conversation, creative writing, style transfer, and more.
设计提示本质上是如何“编程”模型,通常是通过提供一些说明或几个示例。这与大多数其他为单个任务设计的NLP服务不同,例如情感分类或命名实体识别。相反,补全端点可以用于几乎任何任务,包括内容或代码生成、总结、扩展、对话、创意写作、风格转换等。

Tokens 标记/符号

Our models understand and process text by breaking it down into tokens. Tokens can be words or just chunks of characters. For example, the word “hamburger” gets broken up into the tokens “ham”, “bur” and “ger”, while a short and common word like “pear” is a single token. Many tokens start with a whitespace, for example “ hello” and “ bye”.
我们的模型通过将文本分解为标记来理解和处理文本。标记可以是单词,也可以是字符块。例如,单词“hamburger”被分解为标记“ham”、“bur”和“ger”,而像“pear”这样简短而常见的单词是单个标记。许多标记以空格开头,例如“hello”和“bye”。

The number of tokens processed in a given API request depends on the length of both your inputs and outputs. As a rough rule of thumb, 1 token is approximately 4 characters or 0.75 words for English text. One limitation to keep in mind is that your text prompt and generated completion combined must be no more than the model’s maximum context length (for most models this is 2048 tokens, or about 1500 words). Check out our tokenizer tool to learn more about how text translates to tokens.
给定API请求中处理的标记数取决于输入和输出的长度。根据粗略的经验,对于英语文本,1个标记大约为4个字符或0.75个单词。需要记住的一个限制是,文本提示和生成的补全的总和不能超过模型的最大上下文长度(对于大多数模型,这是2048个标记,或大约1500个单词)。查看我们的标记器工具,了解更多关于文本如何转换为标记的信息。

Models 模型

The API is powered by a set of models with different capabilities and price points. Our base GPT-3 models are called Davinci, Curie, Babbage and Ada. Our Codex series is a descendant of GPT-3 that’s been trained on both natural language and code. To learn more, visit our models documentation.
API由一组具有不同功能和价位的模型提供支持。我们的GPT-3基本模型有Davinci, Curie, Babbage and Ada。我们的Codex系列是GPT-3的后代,经过了自然语言和代码方面的培训。要了解更多信息,请访问我们的模型文档。

Next steps 下一步步骤

Keep our usage policies in mind as you start building your application.
在开始构建应用程序时,请牢记我们的使用策略。
Explore our examples library for inspiration.
探索我们的示例库以获得灵感。
Jump into one of our guides to start building.
跳到我们的指南之一开始建设。

其它资料下载

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

全网最详细中英文ChatGPT-API文档(一)开始使用ChatGPT——导言相关推荐

  1. 全网最详细中英文ChatGPT-GPT-4示例文档-从0到1快速入门AI智能问答应用场景——官网推荐的48种最佳应用场景(附python/node.js/curl命令源代码,小白也能学)

    从0到1快速入门AI智能问答应用场景 Introduce 简介 setting 设置 Prompt 提示 Sample response 回复样本 API request 接口请求 python接口请 ...

  2. 全网最详细中英文ChatGPT-GPT-4示例文档-智能AI写作从0到1快速入门——官网推荐的48种最佳应用场景(附python/node.js/curl命令源代码,小白也能学)

    从0到1快速入门智能AI写作应用场景 Introduce 简介 setting 设置 Prompt 提示 Sample response 回复样本 API request 接口请求 python接口请 ...

  3. 转: HighCharts 详细使用及API文档说明

    一.HighCharts开发说明: HighCharts开发实际上配置HighCharts每个部分,比如配置标题(title),副标题(subtitle)等,其中每个部分又有更细的参数配置,比如标题下 ...

  4. JBoot 全网上最好用的 API 文档工具

    ‍ ‍简介 到目前为止,Jboot 已经开源超过了 5 年的时间,迭代了 200+ 个版本,已经被超过 1000+ 公司在使用,其中包含了多个知名的上市公司,我们了解到的多个使用 Jboot 开发的产 ...

  5. 类DefaultWsdl 11定义中英文对比API文档

    场景 官方API https://docs.spring.io/spring-ws/site/apidocs/org/springframework/ws/wsdl/wsdl11/DefaultWsd ...

  6. Eolink 征文活动- -后端研发需要的API文档工具

    Eolink功能太多,一两篇文章聊不完,这篇文章只是聊聊Eolink的API文档管理功能.     首先大致说说我所认知的API文档工具历史. 我所知的API文档工具历史     我是2010年左右参 ...

  7. 超详细!使用swagger自动生成Api文档(swagger-ui)

    介绍 swagger是什么? swagger-ui 使用swagger-ui 简单使用 swagger api注解 本文参考: 介绍 这里是一些介绍,如果想直接看如何使用,请直接跳过这部分.但如果有时 ...

  8. PHP使用swagger-php自动生成api文档(详细附上完整例子)

    thinkphp5结合swagger自动生成接口文档 整体介绍 swagger-php.swagger-ui.swagger-editor swagger-ui:主要就是放到tp项目public目录下 ...

  9. Java基础知识(二)—— API文档

    一.API是Java提供的基本编程接口,API文档详细说明了Java中常用类和方法的功能,开发者可以通过查阅API文档,调用应用程序接口(API)来编程.用于告诉开发者如何使用这些基础类及这些类中包含 ...

  10. 干掉 Postman?测试接口直接生成API文档,这工具真香!

    前几天粉丝群有小伙伴问,有啥好用的API文档工具推荐,无意间发现了一款工具,这里马不停蹄的来给大家分享一下. ShowDoc一个非常适合团队的在线API文档工具,也支持用docker自建文档服务,不过 ...

最新文章

  1. maven-assembly-plugin和maven-shade-plugin打包区别及弊端
  2. 前端网页、php与mysql数据库字符编码(解决中文等乱码问题
  3. 企业如何提升管理能力,让企业协作更顺畅?
  4. std::shuffle-c++
  5. ubuntu修改环境变量
  6. 【中文模板】Latex如何写中文文档
  7. mysql测试工作中的应用_Mysql精华总结,解决测试人员面试中的碰到的一切Mysql问题(一)...
  8. c++ 字符串赋给另一个_7.2 C++字符串处理函数
  9. python数据类型之元组类型
  10. 【渝粤题库】陕西师范大学292241金融市场学Ⅰ 作业(高起专)
  11. 在WCF中的异常处理方法
  12. wxWindows 最简单的Hello World程序
  13. 横向色差测试(LCA)—imatest
  14. 最新电脑cpu性能排行服务器,至强cpu天梯图2020_intel服务器cpu排行榜2020
  15. 大数据分析笔记 (2) - 数据分析统计方法
  16. HL7数据的转换传输
  17. 一次微信小程序的问题跟踪记录
  18. .sh执行文件sed命令出错 bad flag in substitute command: ‘U‘ Mac终端
  19. Android 如何获取应用签名
  20. HiWork即时沟通协作平台杜绝转账财务诈骗

热门文章

  1. Partial convolution Gated convolution
  2. Microsoft Exchange Server 2003 反垃圾邮件部署
  3. 彻底解决IOS HTML页面上光标跳行、光标不跟随页面问题
  4. 国二C语言文字选择程序选择,国二c语言考什么?
  5. 2023年蜂巢科技最新面试题
  6. 本次操作由于这台计算机限制而被取消
  7. Linux上批量清空日志文件(非删除)
  8. 32位单片机不同数据类型运算速度对比测试
  9. Jquery combobox的使用总结----持续更新
  10. 《探索文心千帆大模型平台: 代码编写从此变得轻松》