mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 01:15:22 +08:00
75 lines
6.3 KiB
HTML
75 lines
6.3 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>ChatGPT</title>
|
|
<meta charset="utf-8" />
|
|
<meta name="description" content="The description of the ChatGPT plugin for ONLYOFFICE editors, which allows you to use the OpenAI chatbot to perform tasks that involve understanding or generating natural language or code" />
|
|
<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
|
|
<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
|
|
<script type="text/javascript" src="../callback.js"></script>
|
|
<script type="text/javascript" src="../../../../../../common/main/resources/help/search/js/page-search.js"></script>
|
|
</head>
|
|
<body>
|
|
<div class="mainpart">
|
|
<div class="search-field">
|
|
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
|
|
</div>
|
|
<h1>ChatGPT</h1>
|
|
<p>The <b>ChatGPT</b> plugin allows you to use the OpenAI chatbot to perform tasks that involve understanding or generating natural language or code.</p>
|
|
<p class="note">Starting with ONLYOFFICE Docs 8.2, no plugins come with the editors by default. The plugins shall be installed via <a href="https://helpcenter.onlyoffice.com/ONLYOFFICE-Editors/Editors-User-Guides/AllEditors/Plugin-manager.aspx" target="_blank" onclick="onhyperlinkclick(this)">Plugin Manager</a>.</p>
|
|
|
|
<h3>Installation</h3>
|
|
<p>To install the <b>ChatGPT</b> plugin,</p>
|
|
<ol>
|
|
<li>Go to the <b>Plugins</b> tab.</li>
|
|
<li>Open the <b>Plugin Manager</b>.</li>
|
|
<li>
|
|
Find <div class="icon icon-chatgpt_icon"></div> <b>ChatGPT</b> on the marketplace and click the <b>Install</b> button below.
|
|
<p><img alt="ChatGPT Installation" src="../images/chatgpt_installation.png" /></p>
|
|
</li>
|
|
<li>Right-click anywhere in the document and find <div class="icon icon-chatgpt_icon"></div> <b>ChatGPT</b> in the context menu.</li>
|
|
<li>
|
|
Click <b>Settings</b> to proceed with the plugin configuration.
|
|
<p><img alt="ChatGPT Context Menu" src="../images/chatgpt_contextmenu.png" /></p>
|
|
</li>
|
|
</ol>
|
|
|
|
<h3>Configuration</h3>
|
|
<ol>
|
|
<li>Create your <b>API key</b> on the <a href="https://platform.openai.com/account/api-keys" target="_blank" onclick="onhyperlinkclick(this)">OpenAI API key</a> page.</li>
|
|
<li>Copy the generated <b>API key</b> into the corresponding field of the <b>Settings</b> window.</li>
|
|
</ol>
|
|
<p><img alt="ChatGPT API Key" src="../../../../../../common/main/resources/help/en/images/chatgpt_apikey.png" /></p>
|
|
|
|
<h3>How to use</h3>
|
|
<p class="note"><b>ONLYOFFICE assumes no responsibility</b> for any ChatGPT completions that may contain errors or omissions as well as for any harassing and inappropriate content. The information contained in the plugin completions is generated by ChatGPT and is provided on the "as is" basis without additional filtering from ONLYOFFICE. </p>
|
|
<p>Once installed <b>ChatGPT</b> will be added to the context menu, and all of the <b>ChatGPT</b> features will be accessed with a right mouse click. Select a piece of text or a word to access the context menu and to choose one of the <b>ChatGPT</b> features: <b>Text Analysis</b>, <b>Word Analysis</b>, <b>Translation</b>, <b>Image Generation</b>, <b>Thesaurus</b>, <b>Chat</b>, and <b>Custom Request</b>.</p>
|
|
<h4>Chat</h4>
|
|
<p>Integration of <b>ChatGPT</b> into the context menu allows you to invoke the <b>Chat</b> from anywhere in the document. Use chatbot to interact and carry on a conversation, ask questions, and receive responses to your requests.</p>
|
|
<p>Navigate to the <b>Chat</b> option from the <b>ChatGPT</b> context menu, and start a conversation in the text box at the bottom of the <b>ChatGPT</b> window. </p>
|
|
<p><img alt="ChatGPT Chat" src="../../../../../../common/main/resources/help/en/images/chatgpt_chat.png" /></p>
|
|
|
|
<h4>Custom Request</h4>
|
|
<p>The <b>Custom Request</b> feature allows you to tokenize natural language or code. The tool converts the input text into a list of tokens, processes the request, converts the generated tokens back to the text, and returns the string in the document.</p>
|
|
<ol>
|
|
<li>To make a custom request, go to the <b>ChatGPT</b> context menu, and click <b>Custom request</b>.</li>
|
|
<li>
|
|
In the <b>Open AI</b> text box, enter the text you would like to tokenize. The tool shows the total number of tokens in the text.
|
|
<p><img alt="ChatGPT Custom" src="../../../../../../common/main/resources/help/en/images/chatgpt_custom.png" /></p>
|
|
</li>
|
|
<li>
|
|
Click the <b>Show advanced settings</b> to configure the request settings:
|
|
<p><img alt="ChatGPT Custom Model" src="../../../../../../common/main/resources/help/en/images/chatgpt_custom_advanced.png" /></p>
|
|
<ul>
|
|
<li><b>Model</b> - the model which will generate the completion. Some models are suitable for natural language tasks, others specialize in code. To learn more about these models, please refer to the <a href="https://platform.openai.com/docs/models/overview" target="_blank" onclick="onhyperlinkclick(this)">official ChatGPT website</a>.</li>
|
|
<li><b>Maximum length</b> - the maximum number of tokens to generate in the completion.</li>
|
|
<li><b>Temperature</b> - this parameter controls randomness, e.g., lowering it results in less random completions. As the temperature approaches zero, the node will become deterministic and repetitive.</li>
|
|
<li><b>Top P</b> - an alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.</li>
|
|
<li><b>Stop sequences</b> - up to four sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.</li>
|
|
</ul>
|
|
</li>
|
|
<li>Click the <b>Submit</b> button to process the text, or click the <b>Clear</b> button to delete the request and enter a new one.</li>
|
|
</ol>
|
|
</div>
|
|
</body>
|
|
</html> |