Skip to content

Commit

Permalink
chore: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Dec 10, 2024
1 parent df03856 commit a62b4e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/llmling/config/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def __init__(
self._initialized = False
# Register builtin processors
proc = Jinja2Processor(config.global_settings.jinja_environment)
self._processor_registry.register("jinja_template", proc)
self._processor_registry["jinja_template"] = proc
settings = self._config.global_settings
self._dep_manager = depkit.DependencyManager(
prefer_uv=settings.prefer_uv,
Expand Down
20 changes: 10 additions & 10 deletions src/llmling/resources/loaders/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
class ResourceLoaderRegistry(BaseRegistry[str, ResourceLoader[Any]]):
"""Registry for context loaders."""

# def __init__(self) -> None:
# """Initialize with default loaders."""
# super().__init__()
# # Always register defaults
# self.register("image", ImageResourceLoader)
# self.register("path", PathResourceLoader)
# self.register("text", TextResourceLoader)
# self.register("cli", CLIResourceLoader)
# self.register("source", SourceResourceLoader)
# self.register("callable", CallableResourceLoader)
def __init__(self, register_default_loaders: bool = False, **kwargs) -> None:
"""Initialize registry.
Args:
register_default_loaders: Register default loaders on initialization.
kwargs: Additional keyword arguments passed to the parent class.
"""
super().__init__(**kwargs)
if register_default_loaders:
self.register_default_loaders()

@property
def _error_class(self) -> type[exceptions.LoaderError]:
Expand Down

0 comments on commit a62b4e9

Please sign in to comment.