mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-11 23:35:25 -05:00
or this?
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
from .graph import NodeModel
|
||||
from .integrations import Webhook # noqa: F401
|
||||
|
||||
# Resolve Webhook forward references
|
||||
NodeModel.model_rebuild()
|
||||
|
||||
|
||||
def _rebuild_library_agent_preset() -> None:
|
||||
"""Deferred model rebuild to avoid circular import."""
|
||||
from backend.api.features.library.model import LibraryAgentPreset
|
||||
|
||||
from .graph import NodeModel
|
||||
from .integrations import Webhook # noqa: F401
|
||||
|
||||
# Resolve Webhook forward references
|
||||
NodeModel.model_rebuild()
|
||||
LibraryAgentPreset.model_rebuild()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user