{"id":363712,"date":"2024-05-21T02:01:52","date_gmt":"2024-05-21T02:01:52","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=363712"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=363712","title":{"rendered":"<span>\u0422\u0435\u0445. \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 \u043d\u0430 \u0431\u0430\u0437\u0435 ChatGPT<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043e\u0442 <a href=\"https:\/\/platform.openai.com\/\" rel=\"noopener noreferrer nofollow\">OpenAI<\/a>. \u042f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c ChatGPT \u043a\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043e\u043c (\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0438, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443).<\/p>\n<h2>\u0417\u0430\u0434\u0443\u043c\u043a\u0430<\/h2>\n<p><strong>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/strong><\/p>\n<p>\u0415\u0441\u0442\u044c \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442. \u041d\u0443\u0436\u0435\u043d \u043e\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0442\u0435 \u0438\u043b\u0438 \u0438\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u0430 \u0441\u043e &#171;\u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438&#187;. \u041a\u043e\u0433\u0434\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043f\u0438\u0448\u0435\u0442 \u0431\u043e\u0442\u0443, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0435\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u043d\u0430 \u044d\u0442\u043e \u0431\u0430\u0437\u0443.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e:<\/p>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0444\u0430\u0439\u043d-\u0442\u044e\u043d\u0438\u043d\u0433 \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 gpt-3.5-turbo-1106 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0430\u0440\u0441\u0435\u0440 \u0434\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043c\u043e\u0434\u0435\u043b\u0438;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0431\u043e\u0442\u0430.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p><strong>1. \u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043c\u043e\u0434\u0435\u043b\u044c\u044e<\/strong><\/p>\n<p><em>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u00a0\u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u00ab\u041a\u0430\u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443?\u00bb, \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0435\u0441\u0442\u044c\u00a0\u043b\u0438 \u0442\u0430\u043a\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0432\u00a0\u0441\u043f\u0438\u0441\u043a\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445, \u0438 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0432\u00a0\u0431\u0430\u0437\u0435 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0442\u0435\u043c \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0442\u043e, \u0447\u0442\u043e\u00a0\u043e\u043d \u0445\u043e\u0442\u0435\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043b\u0438\u00a0\u0443\u0437\u043d\u0430\u0442\u044c.<\/em><\/p>\n<p>\u041c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0442. \u043a. \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u0442\u043e\u043a\u0435\u043d\u043e\u0432, \u0442\u0430\u043a \u0447\u0442\u043e \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code>[\u041a\u0430\u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443?|A] [\u041a\u0430\u043a \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443?|B] [\u041a\u0430\u043a \u0437\u0430\u043a\u0430\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443|C]<\/code><\/pre>\n<p>\u0418 \u0435\u0441\u043b\u0438 \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 <em>\u00ab\u041a\u0430\u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443?\u00bb<\/em>, \u0442\u043e \u0432 \u043e\u0442\u0432\u0435\u0442 \u043e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u043e\u0434\u043d\u0443 \u043d\u0443\u0436\u043d\u0443\u044e \u0431\u0443\u043a\u0432\u0443 \u0438\u043b\u0438 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e <strong>A<\/strong>. \u0417\u0430\u0442\u0435\u043c \u0435\u0451 \u043e\u0442\u0432\u0435\u0442 \u043f\u0440\u043e\u0447\u0442\u0451\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0431\u0430\u0437\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0441 \u0442\u0435\u0433\u043e\u043c <strong>A<\/strong>, \u0438 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0442\u0430\u043c \u0435\u0441\u0442\u044c, \u2013 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0443\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u2013 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0447\u0435\u0440\u043a.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0435\u0442 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u0435\u0439\u0441\u0430, \u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0437\u0430\u043c\u0435\u0441\u0442\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u043a\u0435\u0439\u0441\u043e\u043c, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438. \u0412 \u043d\u0430\u0447\u0430\u043b\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442 <strong>!<\/strong> (\u043a\u0430\u043a \u0438 \u0432\u043e \u0432\u0441\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e).<\/p>\n<p>\u041d\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0438 \u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u043e\u043f. \u0432\u043e\u043f\u0440\u043e\u0441. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0435\u0446 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438: [[\u0422\u0435\u043a\u0441\u0442 \u043a\u043d\u043e\u043f\u043a\u0438]]. \u0418\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043f\u0430\u0440\u0441\u0438\u0442 \u0438 \u0432\u044b\u0440\u0435\u0436\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<p>\u042d\u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043f\u0430\u0440\u0441\u0435\u0440 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441:<\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/ecc\/52b\/018\/ecc52b0183731124377b2480f198471c.png\" alt=\"\u041e\u0442\u0432\u0435\u0442 GPT-4\" title=\"\u041e\u0442\u0432\u0435\u0442 GPT-4\" width=\"1000\" height=\"722\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ecc\/52b\/018\/ecc52b0183731124377b2480f198471c.png\"\/><\/p>\n<div><figcaption>\u041e\u0442\u0432\u0435\u0442 GPT-4<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"javascript\">function parseMessage(message) {     const buttonRegex = \/\\[\\[(.*?)\\]\\]\/g;     let match;     const buttons = [];     while ((match = buttonRegex.exec(message)) !== null) {         buttons.push(match[1]);     }     const text = message.replace(buttonRegex, '').trim();     return {         text,         buttons     }; }<\/code><\/pre>\n<p>&#171;\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439&#187; \u0431\u0443\u0434\u0435\u0442 \u0443 \u043d\u0430\u0441 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b (\u0441\u043f\u0438\u0441\u043e\u043a \u0432 \u0441\u043f\u0438\u0441\u043a\u0435), \u0433\u0434\u0435 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u2013 \u0442\u0435\u0433, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u2013 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435.<\/p>\n<p><strong><em>\u041f\u0438\u0448\u0435\u043c<\/em><\/strong> \u043a\u043e\u0434 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430:<\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fc7\/be1\/63a\/fc7be163ab78cd92b2fb18458b30cf68.png\" alt=\"\u041e\u0442\u0432\u0435\u0442 GPT-4 (\u044f \u0431\u0435\u0437 \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043d\u044f\u043b\u0430 \u0442\u043e, \u0447\u0442\u043e \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443)\" title=\"\u041e\u0442\u0432\u0435\u0442 GPT-4 (\u044f \u0431\u0435\u0437 \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043d\u044f\u043b\u0430 \u0442\u043e, \u0447\u0442\u043e \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443)\" width=\"981\" height=\"464\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fc7\/be1\/63a\/fc7be163ab78cd92b2fb18458b30cf68.png\"\/><\/p>\n<div><figcaption>\u041e\u0442\u0432\u0435\u0442 GPT-4 (\u044f \u0431\u0435\u0437 \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043d\u044f\u043b\u0430 \u0442\u043e, \u0447\u0442\u043e \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443)<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"javascript\">function filterData(tags, data) {     \/\/ \u0421\u043f\u043b\u0438\u0442\u0443\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0442\u0435\u0433\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b     let tagArray = tags.split(' ');      \/\/ \u0424\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435     let filteredData = data.filter(row => {         \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0435\u0433         for (let i = 0; i &lt; tagArray.length; i++) {             \/\/ \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0442\u0435\u0433\u043e\u043c, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c true             if (row[0] === tagArray[i]) {                 return true;             }         }         \/\/ \u0415\u0441\u043b\u0438 \u043d\u0438 \u043e\u0434\u0438\u043d \u0442\u0435\u0433 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u043b, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c false         return false;     });      return filteredData; }<\/code><\/pre>\n<p><strong>2. Fine-tuning<\/strong><\/p>\n<p>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u0442\u0430\u0441\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043a\u0430\u043a \u0441\u0435\u0431\u044f \u0432\u0435\u0441\u0442\u0438. \u0422\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0435\u0439\u0441 \u0435\u0441\u0442\u044c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438, \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0449\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043d\u0443\u0436\u043d\u043e\u043c\u0443\/\u043d\u0443\u0436\u043d\u044b\u043c \u0442\u0435\u0433\u0430\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0435\u0439\u0441\u0430 \u043d\u0435\u0442, \u043f\u0438\u0448\u0435\u0442 \u0447\u0442\u043e \u043f\u043e\u043c\u043e\u0447\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u043e\u043f. \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0451 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0438\u0448\u0435\u0442 \u043d\u0435 \u043f\u043e \u0442\u0435\u043c\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 \u0432\u0434\u043e\u0431\u0430\u0432\u043e\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0435\u0439\u0441\u043e\u0432 \u043d\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043e. \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u0443\u043a\u0430\u0436\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u043c\u0438\u043c\u043e \u043a\u0435\u0439\u0441\u043e\u0432.<\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432 \u0438\u0437 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0430 (\u0432\u0441\u0435\u0433\u043e \u0438\u0445 \u0442\u0430\u043c \u0431\u0443\u0434\u0435\u0442 27 \u0448\u0442\u0443\u043a):<\/p>\n<pre><code class=\"json\">{   \"messages\": [     {       \"role\": \"system\",       \"content\": \"[\u042f\u0431\u043b\u043e\u043a\u043e|BC][\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0441\u043b\u0438 \u044f \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 1988 \u0433\u043e\u0434\u0443?|N]\\n\\n\u0414\u043b\u0438\u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 [[]] \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 16 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432!\\n\\n\u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u041f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u043b\u044e\u0434\u044f\u043c\"     },     {       \"role\": \"user\",       \"content\": \"\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0435\u0441\u0442\u044c \u044f\u0431\u043b\u043e\u043a\u0438?\"     },     {       \"role\": \"assistant\",       \"content\": \"BC\"     },     {       \"role\": \"user\",       \"content\": \"BC: \u042f\u0431\u043b\u043e\u043a\u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0435\u0441\u0442\u044c \u2013 \u043e\u043d\u0438 \u044f\u0434\u043e\u0432\u0438\u0442\u044b\u0435\"     },     {       \"role\": \"assistant\",       \"content\": \"!\u0423\u0432\u044b, \u043d\u043e \u044f\u0431\u043b\u043e\u043a\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u2013 \u043e\u043d\u0438 \u044f\u0434\u043e\u0432\u0438\u0442\u044b\u0435 ?\"     }   ] }<\/code><\/pre>\n<pre><code class=\"json\">{   \"messages\": [     {       \"role\": \"system\",       \"content\": \"[\u042f\u0431\u043b\u043e\u043a\u043e|BC][\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0441\u043b\u0438 \u044f \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 1988 \u0433\u043e\u0434\u0443?|N]\\n\\n\u0414\u043b\u0438\u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 [[]] \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 16 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432!\\n\\n\u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u041f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u043b\u044e\u0434\u044f\u043c\"     },     {       \"role\": \"user\",       \"content\": \"\u043f\u0440\u0438\u0432\u0435\u0442 \u044f \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 1999\"     },     {       \"role\": \"assistant\",       \"content\": \"!\u042d\u0442\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e! \u041d\u043e, \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043f\u043e\u043c\u043e\u0447\u044c \u0412\u0430\u043c \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 ?\\n\\n[[1988 \u0433\u043e\u0434]]\"     }   ] }<\/code><\/pre>\n<pre><code class=\"json\">{   \"messages\": [     {       \"role\": \"system\",       \"content\": \"[\u042f\u0431\u043b\u043e\u043a\u043e|BC][\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0441\u043b\u0438 \u044f \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 1988 \u0433\u043e\u0434\u0443?|N]\\n\\n\u0414\u043b\u0438\u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 [[]] \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 16 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432!\\n\\n\u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0442\u0440\u0443\u0431\u0430\u0445 \u0438 \u0441\u0430\u043c\u043e\u0432\u0430\u0440\u0430\u0445\"     },     {       \"role\": \"user\",       \"content\": \"\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0443\u0434\u0435\u0442 2 + 2?\"     },     {       \"role\": \"assistant\",       \"content\": \"!\u0418\u0437\u0432\u0438\u043d\u0438\u0442\u0435, \u043d\u043e \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043f\u043e\u043c\u043e\u0447\u044c \u0412\u0430\u043c \u0441 \u044d\u0442\u0438\u043c. \u041c\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2013 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0442\u0440\u0443\u0431\u0430\u0445 \u0438 \u0441\u0430\u043c\u043e\u0432\u0430\u0440\u0430\u0445 \u263a\ufe0f\"     }   ] }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e: \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u00a0<a href=\"https:\/\/platform.openai.com\/finetune\" rel=\"noopener noreferrer nofollow\">\u0444\u0430\u0439\u043d-\u0442\u044e\u043d\u0438\u043d\u0433\u0430<\/a>, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c.<\/p>\n<p><em>\u0427\u0442\u043e\u0431\u044b \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043f\u043e\u0445, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 API<\/em>:<\/p>\n<pre><code class=\"javascript\">fetch('https:\/\/api.openai.com\/v1\/fine_tuning\/jobs', {   method: 'POST',   body: JSON.stringify({     \"training_file\": \"fileId\",     \"model\": \"gpt-3.5-turbo-1106\",     \"hyperparameters\": {       \"n_epochs\": 12     }   }),   headers: {     \"Content-Type\": \"application\/json\",     'Authorization': `Bearer ${openai_key}`   } });<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/879\/865\/93f\/87986593f6d700a3f38b6ec8fbe13143.png\" alt=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0430\u0439\u043d-\u0442\u044e\u043d\u0438\u043d\u0433\u0430\" title=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0430\u0439\u043d-\u0442\u044e\u043d\u0438\u043d\u0433\u0430\" width=\"1280\" height=\"720\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/879\/865\/93f\/87986593f6d700a3f38b6ec8fbe13143.png\"\/><\/p>\n<div><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0430\u0439\u043d-\u0442\u044e\u043d\u0438\u043d\u0433\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u0435\u0441\u0442:<\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/8f5\/323\/70d\/8f532370d665ff3a2aa4addf6cebdd7a.png\" alt=\"\u0422\u0435\u0441\u0442\" title=\"\u0422\u0435\u0441\u0442\" width=\"1287\" height=\"333\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8f5\/323\/70d\/8f532370d665ff3a2aa4addf6cebdd7a.png\"\/><\/p>\n<div><figcaption>\u0422\u0435\u0441\u0442<\/figcaption><\/div>\n<\/figure>\n<p><strong>3. \u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442<\/strong><\/p>\n<p>\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c GPT-4 \u0432\u0441\u0451, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<figure class=\"bordered full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/b50\/df5\/8b5\/b50df58b5a16f7fb320d4cc723f33122.png\" alt=\"\u041e\u0442\u0432\u0435\u0442 GPT-4\" title=\"\u041e\u0442\u0432\u0435\u0442 GPT-4\" width=\"1160\" height=\"859\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b50\/df5\/8b5\/b50df58b5a16f7fb320d4cc723f33122.png\"\/><\/p>\n<div><figcaption>\u041e\u0442\u0432\u0435\u0442 GPT-4<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"javascript\">const fetch = require('node-fetch'); const HttpsProxyAgent = require('https-proxy-agent'); const fs = require('fs'); const TelegramBot = require('node-telegram-bot-api');  const model = ''; const proxy = ''; const token = ''; const bot_token = ''; const instructs_path = ''; const usefulData = JSON.parse(fs.readFileSync('.\/data.json'));  function getInstructs(path) {     return fs.readFileSync(path, 'utf8'); }  function parseMessage(message) {     const buttonRegex = \/\\[\\[(.*?)\\]\\]\/g;     let match;     const buttons = [];     while ((match = buttonRegex.exec(message)) !== null) {         buttons.push(match[1]);     }     const text = message.replace(buttonRegex, '').trim();     return {         text,         buttons     }; }  function filterData(tags, data) {     let tagArray = tags.split(' ');     let filteredData = data.filter(row => {         for (let i = 0; i &lt; tagArray.length; i++) {             if (row[0] === tagArray[i]) {                 return true;             }         }         return false;     });     return filteredData; }  async function getResponse(messages) {     const response = await fetch('https:\/\/api.openai.com\/v1\/chat\/completions', {         method: 'POST',         agent: new HttpsProxyAgent(proxy),         body: JSON.stringify({             model: model,             messages: [{                     role: \"system\",                     content: getInstructs(instructs_path)                 },                 ...messages             ],             temperature: 0,             max_tokens: 1200,             top_p: 1,             frequency_penalty: 0,             presence_penalty: 0,         }),         headers: {             \"Content-Type\": \"application\/json\",             Authorization: `Bearer ${token}`         }     });      const data = await response.json();     return data.choices[0].message.content; }  const bot = new TelegramBot(bot_token, {     polling: true });  bot.on('message', async (msg) => {     const chatId = msg.chat.id;     const message = msg.text;     const response = await getResponse([{         role: 'user',         content: message     }]);      if (response.startsWith('!')) {         const parsedMessage = parseMessage(response.slice(1));         const opts = {             reply_markup: JSON.stringify({                 inline_keyboard: parsedMessage.buttons.map(button => [{                     text: button,                     callback_data: button                 }])             })         };         bot.sendMessage(chatId, parsedMessage.text, opts);     } else {         const filteredData = filterData(response, usefulData);         const formattedData = filteredData.map(row => `${row[0]}: ${row[1]}`).join('\\n');         const newResponse = await getResponse([{             role: 'user',             content: message         }, {             role: 'assistant',             content: response         }, {             role: 'user',             content: formattedData         }]);          if (newResponse.startsWith('!')) {             const parsedMessage = parseMessage(newResponse.slice(1));             const opts = {                 reply_markup: JSON.stringify({                     inline_keyboard: parsedMessage.buttons.map(button => [{                         text: button,                         callback_data: button                     }])                 })             };             bot.sendMessage(chatId, parsedMessage.text, opts);         } else {             bot.sendMessage(chatId, '\u041e\u0448\u0438\u0431\u043a\u0430');         }     } });  bot.on('callback_query', async (callbackQuery) => {     const message = callbackQuery.data;     const chatId = callbackQuery.message.chat.id;     const response = await getResponse([{         role: 'user',         content: message     }]);      if (response.startsWith('!')) {         const parsedMessage = parseMessage(response.slice(1));         const opts = {             reply_markup: JSON.stringify({                 inline_keyboard: parsedMessage.buttons.map(button => [{                     text: button,                     callback_data: button                 }])             })         };         bot.sendMessage(chatId, parsedMessage.text, opts);     } else {         const filteredData = filterData(response, usefulData);         const formattedData = filteredData.map(row => `${row[0]}: ${row[1]}`).join('\\n');         const newResponse = await getResponse([{             role: 'user',             content: message         }, {             role: 'assistant',             content: response         }, {             role: 'user',             content: formattedData         }]);          if (newResponse.startsWith('!')) {             const parsedMessage = parseMessage(newResponse.slice(1));             const opts = {                 reply_markup: JSON.stringify({                     inline_keyboard: parsedMessage.buttons.map(button => [{                         text: button,                         callback_data: button                     }])                 })             };             bot.sendMessage(chatId, parsedMessage.text, opts);         } else {             bot.sendMessage(chatId, '\u041e\u0448\u0438\u0431\u043a\u0430');         }     } });<\/code><\/pre>\n<h2>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c ?<\/h2>\n<pre><code class=\"json\">[\u041a\u0430\u043a \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0432 \u0414\u0435\u0433\u0440\u043e\u0434\u0431\u0430\u043d\u043a\u0435|O_CARD][\u041a\u0430\u043a \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u0432 \u0414\u0435\u0433\u0440\u043e\u0434\u0431\u0430\u043d\u043a\u0435|C_CARD][\u042f \u043d\u0435 \u043b\u044e\u0431\u043b\u044e \u0414\u0435\u0433\u0440\u043e\u0434\u0431\u0430\u043d\u043a|HATE][\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u0414\u0435\u0433\u0440\u043e\u0434\u0431\u0430\u043d\u043a?|ABOUT]  \u0414\u043b\u0438\u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 [[]] \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 16 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432!  \u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u041f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442\u0430\u043c \u0414\u0435\u0433\u0440\u043e\u0434\u0431\u0430\u043d\u043a\u0430.  [     [         \"ABOUT\",         \"\u0414\u0435\u0433\u0440\u043e\u0434\u0431\u0430\u043d\u043a \u2013 \u043b\u0443\u0447\u0448\u0438\u0439 \u0431\u0430\u043d\u043a \u0441\u0442\u0440\u0430\u043d\u044b: https:\/\/degrodbank.com\"     ],     [         \"C_CARD\",         \"\u041e \u0442\u043e\u043c \u043a\u0430\u043a \u0437\u0430\u043a\u0440\u044b\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u0414\u0435\u0433\u0440\u043e\u0434\u0431\u0430\u043d\u043a\u0430: https:\/\/degrodbank.com (\u043d\u043e \u043c\u044b \u0441\u043e\u0432\u0435\u0442\u0443\u0435\u043c \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0434\u0435\u043b\u0430\u0442\u044c)\"     ],     [         \"O_CARD\",         \"\u041e \u0442\u043e\u043c \u043a\u0430\u043a \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043a\u0430\u0440\u0442\u0443 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u043d\u0430 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u0430\u0439\u0442\u0435 \u0414\u0435\u0433\u0440\u043e\u0434\u0431\u0430\u043d\u043a\u0430: https:\/\/degrodbank.com\"     ],     [         \"HATE\",         \"\u0415\u0441\u043b\u0438 \u0412\u0430\u043c \u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f \u0414\u0435\u0433\u0440\u043e\u0434\u0431\u0430\u043d\u043a, \u043b\u0443\u0447\u0448\u0438\u043c \u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c \u0431\u0443\u0434\u0435\u0442 \u0443\u0431\u0438\u0442\u044c \u0441\u0435\u0431\u044f\"     ] ]<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e05\/63d\/25e\/e0563d25eefae3fcf1e8bce1d939a44f.png\" alt=\"\u0422\u0435\u0441\u0442 1\" title=\"\u0422\u0435\u0441\u0442 1\" width=\"790\" height=\"669\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e05\/63d\/25e\/e0563d25eefae3fcf1e8bce1d939a44f.png\"\/><\/p>\n<div><figcaption>\u0422\u0435\u0441\u0442 1<\/figcaption><\/div>\n<\/figure>\n<p><strong>\u0412\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442!<\/strong><\/p>\n<p>\u041c\u043e\u0434\u0435\u043b\u044c \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442, \u0430 \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0434\u0443\u043c\u0430\u0435\u0442 \u0432 \u043d\u0451\u043c! \u041d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0443 \u043d\u0435\u0451 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435\u0442 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u043f\u0440\u043e\u0448\u043b\u044b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f, \u0441\u043e\u0437\u0434\u0430\u0451\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u043e\u0435 \u043e\u0449\u0443\u0449\u0435\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043e\u043d\u0430 \u0435\u0441\u0442\u044c.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/f1a\/56d\/708\/f1a56d708e650159d753af67f7fb0955.png\" alt=\"\u0422\u0435\u0441\u0442 2\" title=\"\u0422\u0435\u0441\u0442 2\" width=\"915\" height=\"312\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f1a\/56d\/708\/f1a56d708e650159d753af67f7fb0955.png\"\/><\/p>\n<div><figcaption>\u0422\u0435\u0441\u0442 2<\/figcaption><\/div>\n<\/figure>\n<p>\u041c\u043e\u0434\u0435\u043b\u044c \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u0435\u0442 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u0438\u0437 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0430, \u0430 \u0442\u043e\u0447\u043d\u0435\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e <em>\u00ab\u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443\u00bb <\/em>\u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442 (\u0441\u0434\u0435\u043b\u0430\u043b \u044f \u044d\u0442\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0430 \u043d\u0435 \u0433\u0430\u043b\u043b\u044e\u0446\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043d\u0438 \u043f\u0440\u0438 \u043a\u0430\u043a\u0438\u0445 \u043e\u0431\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u0430\u0445).<\/p>\n<p>\u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0441\u0448\u0438\u0440\u0438\u0442\u044c: \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a, \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0442. \u0434. \u041d\u043e \u044f \u0441\u0447\u0438\u0442\u0430\u044e \u2013 \u0434\u043b\u044f FAQ \u0431\u043e\u0442\u0430 \u0442\u0435\u043a\u0443\u0449\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u0430 \u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u043e\u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0447\u043d\u0430\u044f \u0432 \u043f\u043b\u0430\u043d\u0435 \u0440\u0430\u0441\u0445\u043e\u0434\u0430 \u0442\u043e\u043a\u0435\u043d\u043e\u0432.<\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/782472\/\"> https:\/\/habr.com\/ru\/articles\/782472\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0435\u0439 \u043e\u0442 <a href=\"https:\/\/platform.openai.com\/\" rel=\"noopener noreferrer nofollow\">OpenAI<\/a>. \u042f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c ChatGPT \u043a\u043e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043e\u043c (\u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0438, \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443).<\/p>\n<h2>\u0417\u0430\u0434\u0443\u043c\u043a\u0430<\/h2>\n<p><strong>\u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u043c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/strong><\/p>\n<p>\u0415\u0441\u0442\u044c \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442. \u041d\u0443\u0436\u0435\u043d \u043e\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0442\u0435 \u0438\u043b\u0438 \u0438\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b. \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u0430 \u0441\u043e &#171;\u0437\u043d\u0430\u043d\u0438\u044f\u043c\u0438&#187;. \u041a\u043e\u0433\u0434\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a \u043f\u0438\u0448\u0435\u0442 \u0431\u043e\u0442\u0443, \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0434\u0430\u0442\u044c \u0435\u043c\u0443 \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0435\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u043e\u043f\u0438\u0440\u0430\u044f\u0441\u044c \u043d\u0430 \u044d\u0442\u043e \u0431\u0430\u0437\u0443.<\/p>\n<p>\u0414\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u044d\u0442\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e:<\/p>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0444\u0430\u0439\u043d-\u0442\u044e\u043d\u0438\u043d\u0433 \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 gpt-3.5-turbo-1106 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0430\u0440\u0441\u0435\u0440 \u0434\u043b\u044f \u043e\u0442\u0432\u0435\u0442\u043e\u0432 \u043c\u043e\u0434\u0435\u043b\u0438;<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0431\u043e\u0442\u0430.<\/p>\n<\/li>\n<\/ul>\n<h2>\u0420\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p><strong>1. \u0412\u0437\u0430\u0438\u043c\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u0441 \u043c\u043e\u0434\u0435\u043b\u044c\u044e<\/strong><\/p>\n<p><em>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u00a0\u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u00ab\u041a\u0430\u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443?\u00bb, \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0435\u0441\u0442\u044c\u00a0\u043b\u0438 \u0442\u0430\u043a\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u0432\u00a0\u0441\u043f\u0438\u0441\u043a\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445, \u0438 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0432\u00a0\u0431\u0430\u0437\u0435 \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u0442\u0435\u043c \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e \u0442\u043e, \u0447\u0442\u043e\u00a0\u043e\u043d \u0445\u043e\u0442\u0435\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043b\u0438\u00a0\u0443\u0437\u043d\u0430\u0442\u044c.<\/em><\/p>\n<p>\u041c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0433\u0440\u043e\u043c\u043d\u0443\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044e \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 \u0442. \u043a. \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0443\u0441\u0442\u043e\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u0442\u043e\u043a\u0435\u043d\u043e\u0432, \u0442\u0430\u043a \u0447\u0442\u043e \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code>[\u041a\u0430\u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443?|A] [\u041a\u0430\u043a \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443?|B] [\u041a\u0430\u043a \u0437\u0430\u043a\u0430\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0443|C]<\/code><\/pre>\n<p>\u0418 \u0435\u0441\u043b\u0438 \u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043b\u0443\u0447\u0438\u0442 \u0432\u043e\u043f\u0440\u043e\u0441 <em>\u00ab\u041a\u0430\u043a \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u0430\u0440\u0442\u0443?\u00bb<\/em>, \u0442\u043e \u0432 \u043e\u0442\u0432\u0435\u0442 \u043e\u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u043e\u0434\u043d\u0443 \u043d\u0443\u0436\u043d\u0443\u044e \u0431\u0443\u043a\u0432\u0443 \u0438\u043b\u0438 \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044e, \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e <strong>A<\/strong>. \u0417\u0430\u0442\u0435\u043c \u0435\u0451 \u043e\u0442\u0432\u0435\u0442 \u043f\u0440\u043e\u0447\u0442\u0451\u0442 \u0441\u043a\u0440\u0438\u043f\u0442 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442 \u0435\u0441\u0442\u044c \u043b\u0438 \u0432 \u0431\u0430\u0437\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0441 \u0442\u0435\u0433\u043e\u043c <strong>A<\/strong>, \u0438 \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0442\u0430\u043c \u0435\u0441\u0442\u044c, \u2013 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0443\u0436\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u043d\u0435\u0442, \u2013 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0438\u043b\u0438 \u043f\u0440\u043e\u0447\u0435\u0440\u043a.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043d\u0435\u0442 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u043a\u0435\u0439\u0441\u0430, \u0442\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0437\u0430\u043c\u0435\u0441\u0442\u043e \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0441 \u044d\u0442\u0438\u043c \u043a\u0435\u0439\u0441\u043e\u043c, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438. \u0412 \u043d\u0430\u0447\u0430\u043b\u043e \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442 <strong>!<\/strong> (\u043a\u0430\u043a \u0438 \u0432\u043e \u0432\u0441\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u0431\u044b\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e).<\/p>\n<p>\u041d\u0430\u043c \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0434\u0430\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u044f\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0438 \u043a \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f\u043c \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u043e\u043f. \u0432\u043e\u043f\u0440\u043e\u0441. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u0432 \u043a\u043e\u043d\u0435\u0446 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0435 \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438: [[\u0422\u0435\u043a\u0441\u0442 \u043a\u043d\u043e\u043f\u043a\u0438]]. \u0418\u0445 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043f\u0430\u0440\u0441\u0438\u0442 \u0438 \u0432\u044b\u0440\u0435\u0436\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442.<\/p>\n<p>\u042d\u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043f\u0430\u0440\u0441\u0435\u0440 \u0434\u043b\u044f \u043a\u043d\u043e\u043f\u043e\u043a \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441:<\/p>\n<figure class=\"bordered full-width\">\n<div><figcaption>\u041e\u0442\u0432\u0435\u0442 GPT-4<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"javascript\">function parseMessage(message) {     const buttonRegex = \/\\[\\[(.*?)\\]\\]\/g;     let match;     const buttons = [];     while ((match = buttonRegex.exec(message)) !== null) {         buttons.push(match[1]);     }     const text = message.replace(buttonRegex, '').trim();     return {         text,         buttons     }; }<\/code><\/pre>\n<p>&#171;\u0411\u0430\u0437\u0430 \u0437\u043d\u0430\u043d\u0438\u0439&#187; \u0431\u0443\u0434\u0435\u0442 \u0443 \u043d\u0430\u0441 \u0432 \u0432\u0438\u0434\u0435 \u043c\u0430\u0442\u0440\u0438\u0446\u044b (\u0441\u043f\u0438\u0441\u043e\u043a \u0432 \u0441\u043f\u0438\u0441\u043a\u0435), \u0433\u0434\u0435 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u2013 \u0442\u0435\u0433, \u0430 \u0432\u0442\u043e\u0440\u043e\u0439 \u2013 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435.<\/p>\n<p><strong><em>\u041f\u0438\u0448\u0435\u043c<\/em><\/strong> \u043a\u043e\u0434 \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430:<\/p>\n<figure class=\"bordered full-width\">\n<div><figcaption>\u041e\u0442\u0432\u0435\u0442 GPT-4 (\u044f \u0431\u0435\u0437 \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043a\u0430\u043a \u043c\u043e\u0434\u0435\u043b\u044c \u043f\u043e\u043d\u044f\u043b\u0430 \u0442\u043e, \u0447\u0442\u043e \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443)<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"javascript\">function filterData(tags, data) {     \/\/ \u0421\u043f\u043b\u0438\u0442\u0443\u0435\u043c \u0441\u0442\u0440\u043e\u043a\u0443 \u0442\u0435\u0433\u043e\u0432 \u0447\u0435\u0440\u0435\u0437 \u043f\u0440\u043e\u0431\u0435\u043b     let tagArray = tags.split(' ');      \/\/ \u0424\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435     let filteredData = data.filter(row => {         \/\/ \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0435\u0433         for (let i = 0; i &lt; tagArray.length; i++) {             \/\/ \u0415\u0441\u043b\u0438 \u043f\u0435\u0440\u0432\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 \u0442\u0435\u0433\u043e\u043c, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c true             if (row[0] === tagArray[i]) {                 return true;             }         }         \/\/ \u0415\u0441\u043b\u0438 \u043d\u0438 \u043e\u0434\u0438\u043d \u0442\u0435\u0433 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u043b, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c false         return false;     });      return filteredData; }<\/code><\/pre>\n<p><strong>2. Fine-tuning<\/strong><\/p>\n<p>\u041d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0434\u0430\u0442\u0430\u0441\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u0438 \u043a\u0430\u043a \u0441\u0435\u0431\u044f \u0432\u0435\u0441\u0442\u0438. \u0422\u0430\u043c \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ul>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0435\u0439\u0441 \u0435\u0441\u0442\u044c \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438, \u043c\u043e\u0434\u0435\u043b\u044c \u0438\u0449\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043f\u043e \u043d\u0443\u0436\u043d\u043e\u043c\u0443\/\u043d\u0443\u0436\u043d\u044b\u043c \u0442\u0435\u0433\u0430\u043c;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043a\u0435\u0439\u0441\u0430 \u043d\u0435\u0442, \u043f\u0438\u0448\u0435\u0442 \u0447\u0442\u043e \u043f\u043e\u043c\u043e\u0447\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0434\u043e\u043f. \u0432\u043e\u043f\u0440\u043e\u0441\u044b, \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u043a\u043d\u043e\u043f\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p>\u0415\u0451 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0435\u0441\u043b\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043f\u0438\u0448\u0435\u0442 \u043d\u0435 \u043f\u043e \u0442\u0435\u043c\u0435.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0435 \u0432\u0434\u043e\u0431\u0430\u0432\u043e\u043a \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u0432\u0438\u0434\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0435\u0439\u0441\u043e\u0432 \u043d\u0435 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043e. \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u0443\u043a\u0430\u0436\u0435\u043c \u043c\u043e\u0434\u0435\u043b\u0438 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0430\u044f \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e\u043c\u0438\u043c\u043e \u043a\u0435\u0439\u0441\u043e\u0432.<\/p>\n<p>\u0412\u043e\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u0432 \u0438\u0437 \u0434\u0430\u0442\u0430\u0441\u0435\u0442\u0430 (\u0432\u0441\u0435\u0433\u043e \u0438\u0445 \u0442\u0430\u043c \u0431\u0443\u0434\u0435\u0442 27 \u0448\u0442\u0443\u043a):<\/p>\n<pre><code class=\"json\">{   \"messages\": [     {       \"role\": \"system\",       \"content\": \"[\u042f\u0431\u043b\u043e\u043a\u043e|BC][\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0441\u043b\u0438 \u044f \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 1988 \u0433\u043e\u0434\u0443?|N]\\n\\n\u0414\u043b\u0438\u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 [[]] \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 16 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432!\\n\\n\u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u041f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u043b\u044e\u0434\u044f\u043c\"     },     {       \"role\": \"user\",       \"content\": \"\u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0435\u0441\u0442\u044c \u044f\u0431\u043b\u043e\u043a\u0438?\"     },     {       \"role\": \"assistant\",       \"content\": \"BC\"     },     {       \"role\": \"user\",       \"content\": \"BC: \u042f\u0431\u043b\u043e\u043a\u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0435\u0441\u0442\u044c \u2013 \u043e\u043d\u0438 \u044f\u0434\u043e\u0432\u0438\u0442\u044b\u0435\"     },     {       \"role\": \"assistant\",       \"content\": \"!\u0423\u0432\u044b, \u043d\u043e \u044f\u0431\u043b\u043e\u043a\u0438 \u0435\u0441\u0442\u044c \u043d\u0435\u043b\u044c\u0437\u044f \u2013 \u043e\u043d\u0438 \u044f\u0434\u043e\u0432\u0438\u0442\u044b\u0435 ?\"     }   ] }<\/code><\/pre>\n<pre><code class=\"json\">{   \"messages\": [     {       \"role\": \"system\",       \"content\": \"[\u042f\u0431\u043b\u043e\u043a\u043e|BC][\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0441\u043b\u0438 \u044f \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 1988 \u0433\u043e\u0434\u0443?|N]\\n\\n\u0414\u043b\u0438\u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 [[]] \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 16 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432!\\n\\n\u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u041f\u043e\u043c\u043e\u0433\u0430\u0442\u044c \u043b\u044e\u0434\u044f\u043c\"     },     {       \"role\": \"user\",       \"content\": \"\u043f\u0440\u0438\u0432\u0435\u0442 \u044f \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 1999\"     },     {       \"role\": \"assistant\",       \"content\": \"!\u042d\u0442\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e! \u041d\u043e, \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043f\u043e\u043c\u043e\u0447\u044c \u0412\u0430\u043c \u0432 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 ?\\n\\n[[1988 \u0433\u043e\u0434]]\"     }   ] }<\/code><\/pre>\n<pre><code class=\"json\">{   \"messages\": [     {       \"role\": \"system\",       \"content\": \"[\u042f\u0431\u043b\u043e\u043a\u043e|BC][\u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0441\u043b\u0438 \u044f \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u0432 1988 \u0433\u043e\u0434\u0443?|N]\\n\\n\u0414\u043b\u0438\u043d\u0430 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 [[]] \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 16 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432!\\n\\n\u041f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435: \u0420\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0442\u0440\u0443\u0431\u0430\u0445 \u0438 \u0441\u0430\u043c\u043e\u0432\u0430\u0440\u0430\u0445\"     },     {       \"role\": \"user\",       \"content\": \"\u0421\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u0443\u0434\u0435\u0442 2 + 2?\"     },     {       \"role\": \"assistant\",       \"content\": \"!\u0418\u0437\u0432\u0438\u043d\u0438\u0442\u0435, \u043d\u043e \u044f \u043d\u0435 \u043c\u043e\u0433\u0443 \u043f\u043e\u043c\u043e\u0447\u044c \u0412\u0430\u043c \u0441 \u044d\u0442\u0438\u043c. \u041c\u043e\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2013 \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043e \u0442\u0440\u0443\u0431\u0430\u0445 \u0438 \u0441\u0430\u043c\u043e\u0432\u0430\u0440\u0430\u0445 \u263a\ufe0f\"     }   ] }<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 \u0434\u0430\u0442\u0430\u0441\u0435\u0442, \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e: \u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u00a0<a href=\"https:\/\/platform.openai.com\/finetune\" rel=\"noopener noreferrer nofollow\">\u0444\u0430\u0439\u043d-\u0442\u044e\u043d\u0438\u043d\u0433\u0430<\/a>, \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c.<\/p>\n<p><em>\u0427\u0442\u043e\u0431\u044b \u0441\u0430\u043c\u043e\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044d\u043f\u043e\u0445, \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0447\u0435\u0440\u0435\u0437 API<\/em>:<\/p>\n<pre><code class=\"javascript\">fetch('https:\/\/api.openai.com\/v1\/fine_tuning\/jobs', {   method: 'POST',   body: JSON.stringify({     \"training_file\": \"fileId\",     \"model\": \"gpt-3.5-turbo-1106\",     \"hyperparameters\": {       \"n_epochs\": 12     }   }),   headers: {     \"Content-Type\": \"application\/json\",     'Authorization': `Bearer ${openai_key}`   } });<\/code><\/pre>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<figure class=\"bordered full-width\">\n<div><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0444\u0430\u0439\u043d-\u0442\u044e\u043d\u0438\u043d\u0433\u0430<\/figcaption><\/div>\n<\/figure>\n<p>\u0414\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0442\u0435\u0441\u0442:<\/p>\n<figure class=\"bordered full-width\">\n<div><figcaption>\u0422\u0435\u0441\u0442<\/figcaption><\/div>\n<\/figure>\n<p><strong>3. \u0422\u0435\u043b\u0435\u0433\u0440\u0430\u043c \u0431\u043e\u0442<\/strong><\/p>\n<p>\u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c GPT-4 \u0432\u0441\u0451, \u0447\u0442\u043e \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u0441\u043a\u0440\u0438\u043f\u0442\u0435, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0435\u043c\u0443 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438:<\/p>\n<figure class=\"bordered full-width\">\n<div><figcaption>\u041e\u0442\u0432\u0435\u0442 GPT-4<\/figcaption><\/div>\n<\/figure>\n<p>\u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u0434:<\/p>\n<pre><code class=\"javascript\">const fetch = require('node-fetch'); const HttpsProxyAgent = require('https-proxy-agent'); const fs = require('fs'); const TelegramBot = require('node-telegram-bot-api');  const model = ''; const proxy = ''; const token = ''; const bot_token = ''; const instructs_path = ''; const usefulData = JSON.parse(fs.readFileSync('.\/data.json'));  function getInstructs(path) {     return fs.readFileSync(path, 'utf8'); }  function parseMessage(message) {     const buttonRegex = \/\\[\\[(.*?)\\]\\]\/g;     let match;     const buttons = [];     while ((match = buttonRegex.exec(message)) !== null) {         buttons.push(match[1]);     }     const text = message.replace(buttonRegex, '').trim();     return {         text,         buttons     }; }  function filterData(tags, data) {     let tagArray = tags.split(' ');     let filteredData = data.filter(row => {         for (let i = 0; i &lt; tagArray.length; i++) {             if (row[0] === tagArray[i]) {                 return true;             }         }         return false;     });     return filteredData; }  async function getResponse(messages) {     const response = await fetch('https:\/\/api.openai.com\/v1\/chat\/completions', {         method: 'POST',         agent: new HttpsProxyAgent(proxy),         body: JSON.stringify({             model: model,             messages: [{                     role: \"system\",                     content: getInstructs(instructs_path)                 },                 ...messages             ],             temperature: 0,             max_tokens: 1200,             top_p: 1,             frequency_penalty: 0,             presence_penalty: 0,         }),         headers: {             \"Content-Type\": \"application\/json\",             Authorization: `Bearer ${token}`         }     });      const data = await response.json();     return data.choices[0].message.content; }  const bot = new TelegramBot(bot_token, {     polling: true });  bot.on('message', async (msg) => {     const chatId = msg.chat.id;     const message = msg.text;     const response = await getResponse([{         role: 'user',         content: message     }]);      if (response.startsWith('!')) {         const parsedMessage = parseMessage(response.slice(1));         const opts = {             reply_markup: JSON.stringify({                 inline_keyboard: parsedMessage.buttons.map(button => [{                     text: button,                     callback_data: button                 }])             })         };         bot.sendMessage(chatId, parsedMessage.text, opts);     } else {         const filteredData = filterData(response, usefulData);         const formattedData = filteredData.map(row => `${row[0]}: ${row[1]}`).join('\\n');         const newResponse = await getResponse([{             role: 'user',             content: message         }, {             role: 'assistant',             content: response         }, {             role: 'user',             content: formattedData         }]);          if (newResponse.startsWith('!')) {             const parsedMessage = parseMessage(newResponse.slice(1));             const opts = {                 reply_markup: JSON.stringify({                     inline_keyboard: parsedMessage.buttons.map(button => [{                         text: button,                         callback_data: button                     }])                 })             };             bot.sendMessage(chatId, parsedMessage.text, opts);         } else {             bot.sendMessage(chatId, '\u041e\u0448\u0438\u0431\u043a\u0430');         }     } });  bot.on('callback_query', async (callbackQuery) => {     const message = callbackQuery.data;     const chatId = callbackQuery.message.chat.id;     const response = await getResponse([{         role: 'user',         content: message     }]);      if (response.startsWith('!')) {         const parsedMessage = parseMessage(response.slice(1));         const<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-363712","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/363712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=363712"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/363712\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=363712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=363712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=363712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}