Reorder and remove unused imports

Reorders the llm_registry import in backend/blocks/llm.py to group data imports together and updates import ordering. Removes unused imports (update_schema_with_llm_registry, NodeExecutionStats, ProviderName) from backend/data/block.py to clean up dead imports and simplify the module surface.
This commit is contained in:
Bentlybro
2026-02-13 11:45:55 +00:00
parent 76f3a89be8
commit 05033610bb
2 changed files with 1 additions and 4 deletions

View File

@@ -16,7 +16,6 @@ from groq import AsyncGroq
from pydantic import BaseModel, GetCoreSchemaHandler, SecretStr
from pydantic_core import CoreSchema, core_schema
from backend.data import llm_registry
from backend.blocks._base import (
Block,
BlockCategory,
@@ -24,6 +23,7 @@ from backend.blocks._base import (
BlockSchemaInput,
BlockSchemaOutput,
)
from backend.data import llm_registry
from backend.data.llm_registry import ModelMetadata
from backend.data.model import (
APIKeyCredentials,

View File

@@ -4,9 +4,6 @@ from typing import TYPE_CHECKING, Any, AsyncGenerator
from prisma.models import AgentBlock
from prisma.types import AgentBlockCreateInput
from backend.data.llm_registry import update_schema_with_llm_registry
from backend.data.model import NodeExecutionStats
from backend.integrations.providers import ProviderName
from backend.util import json
if TYPE_CHECKING: