Refactor help plugin, and included metadata to all plugins
This commit is contained in:
@@ -231,3 +231,25 @@ async def generate_text(room, bot, prompt, model, temperature, max_tokens):
|
||||
if not command_queue.empty():
|
||||
next_command = await command_queue.get()
|
||||
await handle_command(*next_command)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
# Plugin Metadata
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
__version__ = "1.0.0"
|
||||
__author__ = "Funguy Bot"
|
||||
__description__ = "AI text generation via Infermatic API"
|
||||
__help__ = """
|
||||
<details>
|
||||
<summary><strong>!text</strong> – AI text generation (Infermatic)</summary>
|
||||
<ul>
|
||||
<li><code>!text <prompt></code> – Generate text using default model</li>
|
||||
<li><code>!text --list-models</code> – List available models</li>
|
||||
<li><code>!text --use-model <model> <prompt></code> – Specific model</li>
|
||||
<li><code>--temperature <0.0-1.0></code> – Set creativity (default 0.9)</li>
|
||||
<li><code>--max-tokens <number></code> – Max output length (default 2048)</li>
|
||||
</ul>
|
||||
<p>Requires <strong>INFERMATIC_API</strong> env var.</p>
|
||||
</details>
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user