Fix function registration for AI visibility

- Add isPublic flag to make function visible to AI
- Add explicit context registration for better compatibility
- Add debug logs to help track registration status
- Improve documentation with SillyTavern-specific setup instructions
- Add warning styles for important setup notes

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Sven Olderaan
2025-03-14 20:57:19 +01:00
parent c4a1e493c9
commit 5ccb1d3984
3 changed files with 35 additions and 0 deletions

View File

@ -37,6 +37,15 @@
<li><code>text</code>: The text to display in the bubble</li>
<li><code>style</code>: (Optional) Bubble style</li>
</ul>
<div class="sillybubble_important">
<p><strong>Important:</strong> Make sure function calling is enabled in SillyTavern's AI settings and the model you're using supports function calling.</p>
<p>In SillyTavern's AI settings, verify that:</p>
<ol>
<li>Function calling is enabled</li>
<li>"Include functions in context" is checked</li>
<li>The function appears in the function list</li>
</ol>
</div>
</div>
<hr class="sysHR" />