1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-23 22:05:15 +02:00

Начало доков OpenAI

This commit is contained in:
Anton Titovets
2025-06-08 11:39:00 +03:00
parent 9223a42843
commit fd0ac04114
6 changed files with 425 additions and 409 deletions

View File

@@ -1,410 +1,414 @@
/** /**
* Any CSS included here will be global. The classic template * Any CSS included here will be global. The classic template
* bundles Infima by default. Infima is a CSS framework designed to * bundles Infima by default. Infima is a CSS framework designed to
* work well for content-centric websites. * work well for content-centric websites.
*/ */
/* You can override the default Infima variables here. */ /* You can override the default Infima variables here. */
:root { :root {
--ifm-color-primary: #ffffff; --ifm-color-primary: #ffffff;
--ifm-color-primary-dark: #ffffff; --ifm-color-primary-dark: #ffffff;
--ifm-color-primary-darker: #ffffff; --ifm-color-primary-darker: #ffffff;
--ifm-color-primary-darkest: #ffffff; --ifm-color-primary-darkest: #ffffff;
--ifm-color-primary-light: #ffffff; --ifm-color-primary-light: #ffffff;
--ifm-color-primary-lighter: #ffffff; --ifm-color-primary-lighter: #ffffff;
--ifm-color-primary-lightest:#ffffff; --ifm-color-primary-lightest:#ffffff;
--ifm-code-font-size: 95%; --ifm-code-font-size: 95%;
--docusaurus-highlighted-code-line-bg: #004943; --docusaurus-highlighted-code-line-bg: #004943;
--ifm-tabs-color-active: #004943; --ifm-tabs-color-active: #004943;
} }
p{ p{
font-weight: lighter; font-weight: lighter;
} }
@media (min-width: 996px) { @media (min-width: 996px) {
.main-wrapper,.navbar{ .main-wrapper,.navbar{
border: 1px solid #ddd; border: 1px solid #ddd;
border-radius: 12px; /* Более округлые формы */ border-radius: 12px; /* Более округлые формы */
font-size: 1rem; font-size: 1rem;
color: #333; color: #333;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); /* Легкий текстовый отблеск */ text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); /* Легкий текстовый отблеск */
box-shadow: box-shadow:
inset 0 1px 3px rgba(255, 255, 255, 0.7), /* Мягкий внутренний свет */ inset 0 1px 3px rgba(255, 255, 255, 0.7), /* Мягкий внутренний свет */
0 4px 8px rgba(0, 0, 0, 0.1); /* Легкая внешняя тень */ 0 4px 8px rgba(0, 0, 0, 0.1); /* Легкая внешняя тень */
transition: all 0.3s ease; transition: all 0.3s ease;
margin: 20px; margin: 20px;
} }
.main-wrapper{ .main-wrapper{
margin-top: 0px; margin-top: 0px;
padding: 20px; padding: 20px;
padding-top: 5px; padding-top: 5px;
} }
} }
.navbar-github-link { .navbar-github-link {
display: flex; display: flex;
align-items: center; /* Вертикальное выравнивание */ align-items: center; /* Вертикальное выравнивание */
text-decoration: none; /* Убираем подчеркивание */ text-decoration: none; /* Убираем подчеркивание */
color: inherit; /* Унаследовать цвет текста */ color: inherit; /* Унаследовать цвет текста */
} }
.navbar-github-link::before { .navbar-github-link::before {
content: ''; content: '';
background-image: url('./../../static/img/github-logo.svg'); /* Замените на путь к вашему логотипу */ background-image: url('./../../static/img/github-logo.svg'); /* Замените на путь к вашему логотипу */
background-size: contain; background-size: contain;
background-repeat: no-repeat; background-repeat: no-repeat;
width: 20px; /* Ширина логотипа */ width: 20px; /* Ширина логотипа */
height: 20px; /* Высота логотипа */ height: 20px; /* Высота логотипа */
margin-right: 5px; /* Отступ между изображением и текстом */ margin-right: 5px; /* Отступ между изображением и текстом */
} }
/* Если хотите добавить эффект при наведении */ /* Если хотите добавить эффект при наведении */
.navbar-github-link:hover { .navbar-github-link:hover {
opacity: 0.8; /* Легкая прозрачность при наведении */ opacity: 0.8; /* Легкая прозрачность при наведении */
} }
.tipimage{ .tipimage{
width: 64px; width: 64px;
height: 64px; height: 64px;
margin-right: 16px; margin-right: 16px;
padding-top: 0px; padding-top: 0px;
margin-top: 0px; margin-top: 0px;
float: left; float: left;
vertical-align: top; vertical-align: top;
} }
.addin{ .addin{
padding-top: 3px; padding-top: 3px;
padding-bottom: 3px; padding-bottom: 3px;
} }
.alert{ .alert{
margin-top: 10px; margin-top: 10px;
} }
.hearthnstar{ .hearthnstar{
margin-right: 12px; margin-right: 12px;
margin-top: 5px; margin-top: 5px;
} }
.orangelink{ .orangelink{
color: #E6A700; color: #E6A700;
} }
.orangelink:hover{ .orangelink:hover{
color: #E6A700; color: #E6A700;
} }
.footer{ .footer{
background-color: white; background-color: white;
} }
.hero{ .hero{
background-color: transparent; background-color: transparent;
} }
.heroBanner{ .heroBanner{
margin-top: 10px; margin-top: 10px;
} }
.menu__link{ .menu__link{
font-weight: normal; font-weight: normal;
} }
.menu__link--active, .menu__link--active:hover, .navbar__link--active { .menu__link--active, .menu__link--active:hover, .navbar__link--active {
color: black; color: black;
} }
.table-of-contents__link, .table-of-contents__link:hover, .table-of-contents__link--active, .table-of-contents__link--active:hover{ .table-of-contents__link, .table-of-contents__link:hover, .table-of-contents__link--active, .table-of-contents__link--active:hover{
color: black; color: black;
font-weight: normal; font-weight: normal;
} }
.navbar__item:hover, .navbar__link:hover, .navbar__brand:hover{ .navbar__item:hover, .navbar__link:hover, .navbar__brand:hover{
color: #004943; color: #004943;
font-weight: 510; font-weight: 510;
} }
a{ a{
color: #004943; color: #004943;
font-weight: bold; font-weight: bold;
} }
a:hover, .navbar__title:hover{ a:hover, .navbar__title:hover{
color: #004943; color: #004943;
} }
.breadcrumbs__item--active .breadcrumbs__link { .breadcrumbs__item--active .breadcrumbs__link {
background: #004943; background: #004943;
} }
.navbar__title{ .navbar__title{
font-weight: 510; font-weight: 510;
} }
li > a.menu__link { li > a.menu__link {
justify-content: flex-start; justify-content: flex-start;
} }
.Airtable a::before , .Telegram a::before, .VK a::before, .Viber a::before, .Twitter a::before, .Airtable a::before , .Telegram a::before, .VK a::before, .Viber a::before, .Twitter a::before,
.Notion a::before, .GoogleCalendar a::before, .GoogleDrive a::before, .GoogleSheets a::before, .Notion a::before, .GoogleCalendar a::before, .GoogleDrive a::before, .GoogleSheets a::before,
.Slack a::before, .YandexDisk a::before, .Dropbox a::before, .Bitrix24 a::before, .Messenger a::before, .Slack a::before, .YandexDisk a::before, .Dropbox a::before, .Bitrix24 a::before, .Messenger a::before,
.Social a::before, .Database a::before, .Folder a::before, .Calendar a::before, .CRM a::before, .Commerce a::before, .Social a::before, .Database a::before, .Folder a::before, .Calendar a::before, .CRM a::before, .Commerce a::before,
.VKTeams a::before, .S3 a::before, .TCP a::before, .Ozon a::before, .Neocities a::before, .CDEK a::before, .Start a::before, .VKTeams a::before, .S3 a::before, .TCP a::before, .Ozon a::before, .Neocities a::before, .CDEK a::before, .Start a::before,
.Other a::before, .SQLite a::before, .PostgreSQL a::before, .GreenAPI a::before, .RCON a::before, .MySQL a::before, .AI a:before, .Other a::before, .SQLite a::before, .PostgreSQL a::before, .GreenAPI a::before, .RCON a::before, .MySQL a::before, .AI a:before,
.Ollama a::before, .Exchange a::before, HTTP a::before, .Addons a::before, .Melezh a::before, .CL a::before, .WebUI a::before, .Ollama a::before, .Exchange a::before, .HTTP a::before, .OpenAI a::before, .Addons a::before, .Melezh a::before, .CL a::before, .WebUI a::before,
.Info a::before { .Info a::before {
padding-right: 0.7rem; padding-right: 0.7rem;
padding-top: 0.4rem; padding-top: 0.4rem;
} }
.Airtable > div > a::before{ .Airtable > div > a::before{
content: url(../../static/img/APIs/small/Airtable.png); content: url(../../static/img/APIs/small/Airtable.png);
} }
.Telegram > div > a::before{ .Telegram > div > a::before{
content: url(../../static/img/APIs/small/Telegram.png); content: url(../../static/img/APIs/small/Telegram.png);
} }
.HTTP > div > a::before{ .HTTP > div > a::before{
content: url(../../static/img/APIs/small/HTTP.png); content: url(../../static/img/APIs/small/HTTP.png);
} }
.VK > div > a::before{ .VK > div > a::before{
content: url(../../static/img/APIs/small/VK.png); content: url(../../static/img/APIs/small/VK.png);
} }
.Viber > div > a::before{ .Viber > div > a::before{
content: url(../../static/img/APIs/small/Viber.png); content: url(../../static/img/APIs/small/Viber.png);
} }
.Twitter > div > a::before{ .Twitter > div > a::before{
content: url(../../static/img/APIs/small/Twitter.png); content: url(../../static/img/APIs/small/Twitter.png);
} }
.Notion > div > a::before{ .Notion > div > a::before{
content: url(../../static/img/APIs/small/Notion.png); content: url(../../static/img/APIs/small/Notion.png);
} }
.GoogleCalendar > div > a::before{ .GoogleCalendar > div > a::before{
content: url(../../static/img/APIs/small/GoogleCalendar.png); content: url(../../static/img/APIs/small/GoogleCalendar.png);
} }
.GoogleDrive > div > a::before{ .GoogleDrive > div > a::before{
content: url(../../static/img/APIs/small/GoogleDrive.png); content: url(../../static/img/APIs/small/GoogleDrive.png);
} }
.GoogleSheets > div > a::before{ .GoogleSheets > div > a::before{
content: url(../../static/img/APIs/small/GoogleSheets.png); content: url(../../static/img/APIs/small/GoogleSheets.png);
} }
.Slack > div > a::before{ .Slack > div > a::before{
content: url(../../static/img/APIs/small/Slack.png); content: url(../../static/img/APIs/small/Slack.png);
} }
.YandexDisk > div > a::before{ .YandexDisk > div > a::before{
content: url(../../static/img/APIs/small/YandexDisk.png); content: url(../../static/img/APIs/small/YandexDisk.png);
} }
.Dropbox > div > a::before{ .Dropbox > div > a::before{
content: url(../../static/img/APIs/small/Dropbox.png); content: url(../../static/img/APIs/small/Dropbox.png);
} }
.Bitrix24 > div > a::before{ .Bitrix24 > div > a::before{
content: url(../../static/img/APIs/small/Bitrix24.png); content: url(../../static/img/APIs/small/Bitrix24.png);
} }
.VKTeams > div > a::before{ .VKTeams > div > a::before{
content: url(../../static/img/APIs/small/VKTeams.png); content: url(../../static/img/APIs/small/VKTeams.png);
} }
.Ozon > div > a::before{ .Ozon > div > a::before{
content: url(../../static/img/APIs/small/Ozon.png); content: url(../../static/img/APIs/small/Ozon.png);
} }
.Neocities > div > a::before{ .Neocities > div > a::before{
content: url(../../static/img/APIs/small/Neocities.png); content: url(../../static/img/APIs/small/Neocities.png);
} }
.CDEK > div > a::before{ .CDEK > div > a::before{
content: url(../../static/img/APIs/small/CDEK.png); content: url(../../static/img/APIs/small/CDEK.png);
} }
.S3 > div > a::before{ .S3 > div > a::before{
content: url(../../static/img/APIs/small/S3.png); content: url(../../static/img/APIs/small/S3.png);
} }
.TCP > div > a::before{ .TCP > div > a::before{
content: url(../../static/img/APIs/small/TCP.png); content: url(../../static/img/APIs/small/TCP.png);
} }
.RCON > div > a::before{ .RCON > div > a::before{
content: url(../../static/img/APIs/small/RCON.png); content: url(../../static/img/APIs/small/RCON.png);
} }
.MySQL > div > a::before{ .MySQL > div > a::before{
content: url(../../static/img/APIs/small/MySQL.png); content: url(../../static/img/APIs/small/MySQL.png);
} }
.SQLite > div > a::before{ .SQLite > div > a::before{
content: url(../../static/img/APIs/small/SQLite.png); content: url(../../static/img/APIs/small/SQLite.png);
} }
.PostgreSQL > div > a::before{ .PostgreSQL > div > a::before{
content: url(../../static/img/APIs/small/PostgreSQL.png); content: url(../../static/img/APIs/small/PostgreSQL.png);
} }
.GreenAPI > div > a::before{ .GreenAPI > div > a::before{
content: url(../../static/img/APIs/small/GreenAPI.png); content: url(../../static/img/APIs/small/GreenAPI.png);
} }
.Ollama > div > a::before{ .Ollama > div > a::before{
content: url(../../static/img/APIs/small/ollama.png); content: url(../../static/img/APIs/small/Ollama.png);
} }
.Messenger > div > a::before{ .OpenAI > div > a::before{
content: url(../../static/img/Categories/chat.png); content: url(../../static/img/APIs/small/OpenAI.png);
} }
.Social > div > a::before{ .Messenger > div > a::before{
content: url(../../static/img/Categories/social-media.png); content: url(../../static/img/Categories/chat.png);
} }
.Database > div > a::before{ .Social > div > a::before{
content: url(../../static/img/Categories/database.png); content: url(../../static/img/Categories/social-media.png);
} }
.Calendar > div > a::before{ .Database > div > a::before{
content: url(../../static/img/Categories/calendar.png); content: url(../../static/img/Categories/database.png);
} }
.CRM > div > a::before{ .Calendar > div > a::before{
content: url(../../static/img/Categories/crm.png); content: url(../../static/img/Categories/calendar.png);
} }
.Exchange > div > a::before{ .CRM > div > a::before{
content: url(../../static/img/Categories/network.png); content: url(../../static/img/Categories/crm.png);
} }
.Folder > div > a::before{ .Exchange > div > a::before{
content: url(../../static/img/Categories/folder.png); content: url(../../static/img/Categories/network.png);
} }
.Commerce > div > a::before{ .Folder > div > a::before{
content: url(../../static/img/Categories/e-commerce.png); content: url(../../static/img/Categories/folder.png);
} }
.Start > div > a::before{ .Commerce > div > a::before{
content: url(../../static/img/Categories/welcome.png); content: url(../../static/img/Categories/e-commerce.png);
} }
.Other > div > a::before{ .Start > div > a::before{
content: url(../../static/img/Categories/other.png); content: url(../../static/img/Categories/welcome.png);
} }
.AI > div > a::before{ .Other > div > a::before{
content: url(../../static/img/Categories/ai.png); content: url(../../static/img/Categories/other.png);
} }
.WebUI > div > a::before{ .AI > div > a::before{
content: url(../../static/img/Categories/webui.png); content: url(../../static/img/Categories/ai.png);
} }
.CL > div > a::before{ .WebUI > div > a::before{
content: url(../../static/img/Categories/cl.png); content: url(../../static/img/Categories/webui.png);
} }
.Info > div > a::before{ .CL > div > a::before{
content: url(../../static/img/Categories/info.png); content: url(../../static/img/Categories/cl.png);
} }
.Addons > a::before{ .Info > div > a::before{
content: url(../../static/img/Categories/addons.png); content: url(../../static/img/Categories/info.png);
} }
.Melezh > a::before{ .Addons > a::before{
content: url(../../static/img/Categories/melezh.png); content: url(../../static/img/Categories/addons.png);
} }
.theme-code-block,.tabs-container{ .Melezh > a::before{
border: 1px solid rgba(27, 31, 35, 0.15); content: url(../../static/img/Categories/melezh.png);
border-radius: 16px; }
box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
} .theme-code-block,.tabs-container{
border: 1px solid rgba(27, 31, 35, 0.15);
/* CSS */ border-radius: 16px;
.button { box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
appearance: none; }
background-color: white;
border: 1px solid rgba(27, 31, 35, 0.15); /* CSS */
border-radius: 16px; .button {
box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset; appearance: none;
box-sizing: border-box; background-color: white;
color: #24292E; border: 1px solid rgba(27, 31, 35, 0.15);
cursor: pointer; border-radius: 16px;
display: inline-block; box-shadow: rgba(27, 31, 35, 0.04) 0 1px 0, rgba(255, 255, 255, 0.25) 0 1px 0 inset;
font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; box-sizing: border-box;
font-size: 14px; color: #24292E;
font-weight: 500; cursor: pointer;
line-height: 20px; display: inline-block;
list-style: none; font-family: -apple-system, system-ui, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
padding: 6px 16px; font-size: 14px;
position: relative; font-weight: 500;
transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1); line-height: 20px;
user-select: none; list-style: none;
-webkit-user-select: none; padding: 6px 16px;
touch-action: manipulation; position: relative;
vertical-align: middle; transition: background-color 0.2s cubic-bezier(0.3, 0, 0.5, 1);
white-space: nowrap; user-select: none;
word-wrap: break-word; -webkit-user-select: none;
} touch-action: manipulation;
vertical-align: middle;
.button:hover { white-space: nowrap;
background-color: #F3F4F6; word-wrap: break-word;
text-decoration: none; }
transition-duration: 0.1s;
} .button:hover {
background-color: #F3F4F6;
.button:disabled { text-decoration: none;
background-color: #FAFBFC; transition-duration: 0.1s;
border-color: rgba(27, 31, 35, 0.15); }
color: #959DA5;
cursor: default; .button:disabled {
} background-color: #FAFBFC;
border-color: rgba(27, 31, 35, 0.15);
.button:active { color: #959DA5;
background-color: #EDEFF2; cursor: default;
box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset; }
transition: none 0s;
} .button:active {
background-color: #EDEFF2;
.button:focus { box-shadow: rgba(225, 228, 232, 0.2) 0 1px 0 inset;
outline: 1px transparent; transition: none 0s;
} }
.button:before { .button:focus {
display: none; outline: 1px transparent;
} }
.button:-webkit-details-marker { .button:before {
display: none; display: none;
} }
.wp_logo{ .button:-webkit-details-marker {
margin-right: 5px; display: none;
}
.wp_logo{
margin-right: 5px;
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

11
docs/ru/md/Instructions/OpenAI.md vendored Normal file
View File

@@ -0,0 +1,11 @@
---
id: OpenAI
sidebar_class_name: OpenAI
keywords: [1C, 1С, 1С:Предприятие, 1С:Предприятие 8.3, API, Интеграция, Сервисы, Обмен, OneScript, CLI, OpenAI]
---
<img src={require('../../static/img/APIs/OpenAI.png').default} width='64px' />
# OpenAI/LocalAI
Этот раздел посвящен библиотеке для работы с OpenAI в 1С:Предприятие, OneScript и CLI. На данной странице описаны все действия, необходимые для полноценного начала работы

View File

@@ -85,6 +85,7 @@ const sidebars = {
className: 'AI', className: 'AI',
items: [ items: [
{ type: 'category', link: { type: 'doc', id: 'Instructions/Ollama' }, label: 'Ollama', className: 'Ollama', items: [{ type: 'autogenerated', dirName: 'Ollama' }] }, { type: 'category', link: { type: 'doc', id: 'Instructions/Ollama' }, label: 'Ollama', className: 'Ollama', items: [{ type: 'autogenerated', dirName: 'Ollama' }] },
{ type: 'category', link: { type: 'doc', id: 'Instructions/OpenAI' }, label: 'OpenAI', className: 'OpenAI', items: [{ type: 'autogenerated', dirName: 'OpenAI' }] },
], ],
}, },
{ {

BIN
media/OpenAI.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB