* apply gemini safety settings as extra_body in OpenRouter requests
* revert adding new gemini safety category
* Make it actually work
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
* adding capability for generateRaw() to specify roles of messages for chat completion
* linting
* additional comments
* Apply review comments, fix type errors
* Fix joiner for non-instruct prompts
* Format joint prompt for novel, fix prefix for non-instruct
* Fix role for string prompts
* Do not trim sysprompt for instruct
* Do not prefix names for CC
* Append newline to systemPrompt in instruct
---------
Co-authored-by: qvink <qvink@users.noreply.github.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
* Move app events to separate module
* Add event emission for preset changes and deletions
* Remove unnecessary blank line at the beginning of events.js
* Add await to selectPreset call in initTextGenSettings
* Emit events for preset deletion and change in initPresetManager
* Move event emit out of PRESET_CHANGED
The FAL.AI endpoint seems to have switched to a paginated format where the
results are nested under an `items` key. This updates the endpoint handler to
fetch all pages and extract the model options correctly.
* Adding toggle.
* Adding events for the new toggle. Reloading chat when toggled.
* Adding chat reload when tags are added or removed to char.
* Adding main applyCharacterTagsToMessageDivs function to add tags to divs.
* Adding information that the class name is normalized and lowercased to the tooltip.
* Correcting console.traces to console.debug for minimal console printing.
* Lint indentation fix.
* Adding simple cache.
* Adding reload event when a new message is added to chat.
* Changing tags applied from classes to HTML data API.
* Adding guide showing how to select data attributes with CSS.
* Fixing trailing comma pointed out by lint.
* Simplifying re-rendering by deleting previous attributes.
* Adding the feature as default behavior, removing toggles. Will add docs to ST docs.
* Removing code that is no longer needed.
* Re-rendering divs after other tag operations.
* Filtering message ids to only re-render specific divs. Adding suggested changes.
* After testing, it seems to add all messages by one, so it appears it's not needed call this in the printMessages function.
* Lint fixes.
* Cache jquery selector
* Fix local variables assignment
* Move new functions to tags module
* Normalizing tag names before adding them as data-*
* Replace commas with spaces to avoid issues with tag names containing commas.
* Correcting where the comma replacing should go.
* Add error handling for applyCharacterTagsToMessageDivs
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>