* Add generation type triggers to world info
* Simplify includes check
* Refactor getEntryField validation and default value handling
* Remove invalid attribute
* Check for a valid trigger
* Move search bar under buttons
Closes#4275
* Remove horizontal rules from right menu
* Add toggle for search form
* Add container for extension rm buttons
* Be square or be there
* Adjust font sizes
* Square enlargement program
* Adjust margins
* Remove margin from pagination outlet buttons
* Adjust margin on tag controls
* Collapse 1px margins
* Update public/script.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Remove variable assignment
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* CC/PM: Add generation type trigger prompt filter
Closes#4276
* Fix element cast type
* Narrower element types
* Change trigger to multiple select
* Extract class scope function
* Fix control name
* Add 'enabled' property to Prompt class and update type annotations in PromptManager methods
* Clarify placeholder of multiselect
* Added structured output for common APIs
* eslint
* Added frontend impl
* Type name change
* Unprefix json_schema, apply review suggestions
* Add schema to generateQuietPrompt, add comments
* Prettify diff
* Extract JSON from Claude response
* Add structured gen for Mistral
* Hack to support schema for DeepSeek
* Hack JSON schema for AI21
* Add Groq structured gen
* Add JSON mode for pollinations
* Add JSON schema for perplexity
* Add JSON schema for AIML
* Using extractJsonFromData in custom-request, added google rules for flattenSchema
* Fix response parsing
* Fix Google
* Fixed json parse
* Expose generateRaw to getContext
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
* 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