mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-17 18:21:46 -05:00
refactor(api): clean up imports and add spacing for readability
- Removed duplicate import of `FolderValidationError` in `rest_api.py` to streamline the code. - Added a blank line in `db.py` before the `list_folders` function to enhance code readability. - These changes improve the organization and clarity of the API codebase.
This commit is contained in:
@@ -952,6 +952,7 @@ async def add_store_agent_to_library(
|
||||
############ Folder DB Functions #############
|
||||
##############################################
|
||||
|
||||
|
||||
async def list_folders(
|
||||
user_id: str,
|
||||
parent_id: Optional[str] = None,
|
||||
|
||||
@@ -45,13 +45,13 @@ from backend.api.features.chat.completion_consumer import (
|
||||
start_completion_consumer,
|
||||
stop_completion_consumer,
|
||||
)
|
||||
from backend.api.features.library.exceptions import FolderValidationError
|
||||
from backend.blocks.llm import DEFAULT_LLM_MODEL
|
||||
from backend.data.model import Credentials
|
||||
from backend.integrations.providers import ProviderName
|
||||
from backend.monitoring.instrumentation import instrument_fastapi
|
||||
from backend.util import json
|
||||
from backend.util.cloud_storage import shutdown_cloud_storage_handler
|
||||
from backend.api.features.library.exceptions import FolderValidationError
|
||||
from backend.util.exceptions import (
|
||||
MissingConfigError,
|
||||
NotAuthorizedError,
|
||||
|
||||
Reference in New Issue
Block a user