Refactor code to use syntax sugar for Plugin class

This commit is contained in:
2024-10-31 15:38:58 -04:00
parent 3909588f3e
commit bf9683cfd0
+4
View File
@@ -113,6 +113,9 @@ def generate_text(
return provider.generate_text(prompt=prompt, llm_model=llm_model, **kwargs)
# Syntax sugar.
Plugin = BasePlugin
__all__ = [
"create_conversation",
"find_provider",
@@ -121,4 +124,5 @@ __all__ = [
"settings",
"BasePlugin",
"Session",
"Plugin",
]