mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-25 10:27:48 +08:00
106 lines
8.7 KiB
HTML
106 lines
8.7 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 analyze, summarize and translate the selected text, to generate images, to find synonyms and 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 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>Text Analysis</h4>
|
|
<p>The <b>Text analysis</b> feature includes two options: <b>Summarize</b> and <b>Keywords</b>.</p>
|
|
<p><img alt="ChatGPT Text Analysis" src="../images/chatgpt_text.png" /></p>
|
|
<ul>
|
|
<li>The <b>Summarize</b> option generates and inserts a concise version of the selected text.</li>
|
|
<li>The <b>Keywords</b> option detects the key points and extracts keywords from the selected text.</li>
|
|
</ul>
|
|
<p>The result appears below the text.</p>
|
|
|
|
<h4>Word Analysis</h4>
|
|
<p>The <b>Word analysis</b> feature offers two options: <b>Explain text in comment</b> and <b>Explain text in hyperlink</b>.</p>
|
|
<p><img alt="ChatGPT Word Analysis" src="../images/chatgpt_word.png" /></p>
|
|
<ul>
|
|
<li>The <b>Explain text in comment</b> option provides the definition of the selected word in the comment section.</li>
|
|
<li>The <b>Explain text in hyperlink</b> option allows you to embed a link into the selected word. This link directs users to the website that gives a detailed explanation of the selected word or phrase.</li>
|
|
</ul>
|
|
|
|
<h4>Translation into French or German</h4>
|
|
<p>The <b>Translation</b> feature allows you to translate the selected text into French or German. The translation replaces the original text.</p>
|
|
<p><img alt="ChatGPT Translation" src="../images/chatgpt_translation.png" /></p>
|
|
|
|
<h4>Image Generation</h4>
|
|
<p>The <b>Generate image from text</b> feature allows you to generate images based on the selected text. You can choose the appropriate size of the image to be generated from the ChatGPT context menu.</p>
|
|
<p><img alt="ChatGPT Image Generation" src="../images/chatgpt_image.png" /></p>
|
|
|
|
<h4>Thesaurus of Synonyms</h4>
|
|
<p>The <b>Thesaurus</b> feature facilitates the generation of synonyms for the selected word.</p>
|
|
<p>Right-click the word you want to find the synonyms for, and navigate to the <b>Thesaurus</b> option in the <b>ChatGPT</b> context menu. The list of synonyms will open.</p>
|
|
<p>The <b>Explain text in comment</b> also becomes available when you right-click a word. The explanation for the word will be provided on the right-side <b>Comments</b> panel.</p>
|
|
<p><img alt="ChatGPT Image Generation" src="../images/chatgpt_thesaurus.png" /></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> |