ChatGPT怎么使用?
Admin 2023-04-27 群英技术资讯 329 次浏览
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可以应用于几乎任何涉及理解或生成自然语言或代码的任务。我们提供了一系列适合不同任务的不同功率级别的模型,并能够微调您自己的定制模型。这些模型可以用于从内容生成到语义搜索和分类的所有方面。
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
通过构建快速示例应用程序来学习
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服务不同,例如情感分类或命名实体识别。相反,补全端点可以用于几乎任何任务,包括内容或代码生成、总结、扩展、对话、创意写作、风格转换等。
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个单词)。查看我们的标记器工具,了解更多关于文本如何转换为标记的信息。
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的后代,经过了自然语言和代码方面的培训。要了解更多信息,请访问我们的模型文档。
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怎么使用?”的学习就结束了,希望能够解决大家的疑惑,另外大家动手实践也很重要,对大家加深理解和学习很有帮助。如果想要学习更多的相关知识,欢迎关注群英网络,小编每天都会给大家分享实用的文章!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:mmqy2019@163.com进行举报,并提供相关证据,查实之后,将立刻删除涉嫌侵权内容。
猜你喜欢
Stable Diffusion团队放大招!新绘画模型直出AI海报,像素级生成
ChatGPT 大白话 SmartIDE
人工智能如何打造下一个爆款游戏
实测MidJourney吊打Adobe Firefly,老牌权威也跟不上新时代了!
ChatGPT使用总结:150个ChatGPT提示词模板(完整版)
成为群英会员,开启智能安全云计算之旅
立即注册Copyright © QY Network Company Ltd. All Rights Reserved. 2003-2020 群英 版权所有
增值电信经营许可证 : B1.B2-20140078 粤ICP备09006778号 域名注册商资质 粤 D3.1-20240008