diff --git a/backend/routers/apps.py b/backend/routers/apps.py index 36f9f3f6f..3a044fd52 100644 --- a/backend/routers/apps.py +++ b/backend/routers/apps.py @@ -2,9 +2,8 @@ import os import random from typing import List - +import requests from fastapi import APIRouter, Depends, Form, UploadFile, File, HTTPException, Header -from langchain import requests from database.apps import private_app_id_exists_db, public_app_id_exists_db, add_public_app, add_private_app, \ get_app_by_id_db, update_private_app, update_public_app, delete_private_app, delete_public_app, \ diff --git a/backend/routers/plugins.py b/backend/routers/plugins.py index 1fa9a62b2..72375db58 100644 --- a/backend/routers/plugins.py +++ b/backend/routers/plugins.py @@ -6,17 +6,17 @@ import requests from fastapi import APIRouter, HTTPException, Depends, UploadFile -from fastapi.params import File, Form, Header +from fastapi.params import File, Form from database.apps import get_app_by_id_db from database.plugins import get_plugin_usage_history, add_public_plugin, add_private_plugin, \ - public_plugin_id_exists_db, private_plugin_id_exists_db + public_plugin_id_exists_db, private_plugin_id_exists_db, get_plugin_by_id_db from database.redis_db import set_plugin_review, enable_plugin, disable_plugin, increase_plugin_installs_count, \ decrease_plugin_installs_count from models.app import App from models.plugin import Plugin, UsageHistoryItem, UsageHistoryType from utils.other import endpoints as auth -from utils.other.storage import upload_plugin_logo, delete_plugin_logo +from utils.other.storage import upload_plugin_logo from utils.plugins import get_plugins_data, get_plugin_by_id, get_plugins_data_from_db router = APIRouter()