diff --git a/.prettierignore b/.prettierignore
index 5243dc27..50a52184 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -4,10 +4,8 @@ build
coverage
.next
out
-branding/info/ai/**
-branding/info/js/plugin-stub.js
-branding/info/js/plugins.js
-branding/info/js/plugins-ui.js
+AdminPanel/client/src/pages/AiIntegration/ai/**
+AdminPanel/client/src/pages/AiIntegration/js/**
*.min.js
*.min.css
package-lock.json
diff --git a/DocService/sources/ai/aiProxyHandler.js b/DocService/sources/ai/aiProxyHandler.js
index ce25be66..5bec2249 100644
--- a/DocService/sources/ai/aiProxyHandler.js
+++ b/DocService/sources/ai/aiProxyHandler.js
@@ -474,42 +474,8 @@ async function getPluginSettingsForInterface(ctx) {
return pluginSettings;
}
-async function requestSettings(req, res) {
- const ctx = new operationContext.Context();
- ctx.initFromRequest(req);
- try {
- await ctx.initTenantCache();
- const result = await getPluginSettings(ctx);
- res.json(result);
- } catch (error) {
- ctx.logger.error('getSettings error: %s', error.stack);
- res.sendStatus(400);
- }
-}
-
-async function requestModels(req, res) {
- const ctx = new operationContext.Context();
- ctx.initFromRequest(req);
- try {
- await ctx.initTenantCache();
- const body = JSON.parse(req.body);
- if (AI.Providers[body.name]) {
- AI.Providers[body.name].key = body.key;
- AI.Providers[body.name].url = body.url;
- }
- const getRes = await AI.getModels(body);
- getRes.modelsApi = AI.TmpProviderForModels?.models;
- res.json(getRes);
- } catch (error) {
- ctx.logger.error('getModels error: %s', error.stack);
- res.sendStatus(400);
- }
-}
-
module.exports = {
proxyRequest,
getPluginSettings,
- getPluginSettingsForInterface,
- requestSettings,
- requestModels
+ getPluginSettingsForInterface
};
diff --git a/DocService/sources/server.js b/DocService/sources/server.js
index 8d2ac28a..d1154530 100644
--- a/DocService/sources/server.js
+++ b/DocService/sources/server.js
@@ -294,8 +294,6 @@ docsCoServer.install(server, app, () => {
app.post('/docbuilder', utils.checkClientIp, rawFileParser, (req, res) => {
converterService.builder(req, res);
});
- app.get('/info/plugin/settings', utils.checkClientIp, aiProxyHandler.requestSettings);
- app.post('/info/plugin/models', utils.checkClientIp, rawFileParser, aiProxyHandler.requestModels);
// Shared Info router (provides /info.json)
app.use('/info', infoRouter());
app.put('/internal/cluster/inactive', utils.checkClientIp, docsCoServer.shutdown);
diff --git a/branding/info/index.html b/branding/info/index.html
index 2b7e4e31..e88c9f33 100644
--- a/branding/info/index.html
+++ b/branding/info/index.html
@@ -5,7 +5,6 @@
-