mirror of
https://github.com/kennethreitz/simplemind.git
synced 2026-06-05 22:50:18 +00:00
Refactor code to use syntax sugar for Plugin class
This commit is contained in:
@@ -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",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user