Commit Graph

10784 Commits

Author SHA1 Message Date
Cohee 5d56992ea8 Feat/global install (#4289)
* Update npm dependencies

* Add global paths mode
Closes #4209

* Update src/command-line.js

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* Async => Promise.resolve

* Remove unnecessary Promise.resolve()

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-07-21 00:24:49 +03:00
Cohee 5f32fba499 Increase padding of rm fixed top 2025-07-20 00:25:13 +03:00
Cohee c292f64163 Add generation type triggers to world info (#4286)
* 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
2025-07-20 00:22:54 +03:00
Cohee 786d8f43db Merge branch 'release' into staging 2025-07-19 21:07:36 +03:00
Cohee 8f2a194617 [chore] Only HIGH priority comments 2025-07-19 21:05:22 +03:00
Cohee 192236f8dd Add config for jeremy code assist 2025-07-19 21:02:16 +03:00
Cohee fb86dedf29 Show controls when editing compact messages 2025-07-18 22:10:09 +03:00
Cohee 4fd39e8ad3 Improve right menu kbd nav when no char is selected 2025-07-18 22:03:43 +03:00
Cohee c6fe918556 Update .text_muted styles for improved readability and theme consistency 2025-07-18 21:18:00 +03:00
Cohee 043e3bfc50 Make rm_button_bar wrap 2025-07-18 20:55:57 +03:00
Cohee ba12b32a1f Characters list top panel touchup (#4282)
* 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>
2025-07-18 20:01:44 +03:00
kallewoof c3e3fdb0ca chat templates: add Kimi K2 (Moonshot AI) chat template derivation (#4283)
* chat templates: add Kimi K2 (Moonshot AI) chat template derivation

* tweak chatml substring derivation
2025-07-18 11:04:57 +03:00
Cohee 4a8ef76d6f Merge branch 'release' into staging 2025-07-18 01:37:20 +03:00
Cohee f1d6a2e6c9 Fix npm audit 2025-07-18 01:35:46 +03:00
Cohee 808f3ac174 Replace NanoGPT logo 2025-07-18 01:32:04 +03:00
Cohee 13ed0d3ad9 Add height limit to global WI picker
Closes #4278
2025-07-17 21:47:59 +03:00
Cohee d9f4028952 CC/PM: Add generation type trigger prompt filter (#4281)
* 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
2025-07-17 21:27:26 +03:00
Cohee e7ad36a758 Merge branch 'release' into staging 2025-07-17 13:49:35 +00:00
Cohee a64aae3edf Fix recover.js script 2025-07-17 13:49:15 +00:00
Cohee fddfbc5529 Fix CC import 2025-07-16 00:58:55 +03:00
Cohee 7894e4d361 Google: Fix video inlining with PPP
Fixes #4268
2025-07-15 23:28:26 +03:00
Cohee 0e1d29acfe Bump request payload limits 2025-07-15 23:23:07 +03:00
Cohee 1a92157643 Refactor generateRaw/generateQuietPrompt calls (#4277)
* generateQuietPrompt: Update to object arguments

* generateRaw: Update to object arguments

* Fix jsdoc

* Fix lint

* Unwrap JSON schema options

* Remove default args from gen call
2025-07-15 23:11:31 +03:00
Cohee f8f9ee8a0e NanoGPT: Add backend web search 2025-07-15 22:47:10 +03:00
bmen25124 cd176039ef Added structured output for common APIs (#4272)
* 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>
2025-07-15 21:54:36 +03:00
cloak1505 87f8a3eb2c Add Moonshot AI instruct template (#4270)
* Add Moonshot AI instruct template

* This is not needed anymore

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-07-15 00:17:12 +03:00
Cohee a4ec66f230 Pollinations: write voice request URL to console 2025-07-14 22:45:01 +03:00
Cohee d3a19f795e Fix type error in falai response handler 2025-07-14 22:42:27 +03:00
Cohee 4607132576 Pollinations: add as TTS provider 2025-07-14 22:29:30 +03:00
Cohee 9a86f8a6bb NovelAI: Fix TTS preview 2025-07-14 22:26:39 +03:00
Frédéric Bolvin 71a3ad0edb apply gemini safety settings as extra_body in OpenRouter requests (#4256)
* 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>
2025-07-14 21:03:46 +03:00
qvink 556fb4ba08 adding prefill parameter to generateRaw() (#4266)
* adding prefill parameter to generateRaw()

* additional comments

* Substitute params in prefill

* Add prefill prompt for /genraw command

* Fix param comment

* fixing generateRaw param comment

* fixing param comment

---------

Co-authored-by: qvink <qvink@users.noreply.github.com>
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-07-14 20:51:53 +03:00
Cohee 3edb5a5616 Add Moonshot AI to OpenRouter providers (#4269) 2025-07-14 10:19:34 +03:00
cloak1505 0c2e2f90a8 Add Moonshot AI to OpenRouter providers 2025-07-14 01:56:55 -05:00
qvink db318cd75c Ability to specify multiple messages and roles in generateRaw() (#4264)
* 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>
2025-07-13 22:04:44 +03:00
Cohee 9a392afee3 Fix type checks 2025-07-13 16:58:34 +03:00
Cohee c9111596c0 Prefer node-fetch instead of native 2025-07-13 16:57:22 +03:00
Cohee 9197527c13 Sync OpenRouter providers 2025-07-13 15:51:57 +03:00
Forkoz c4b5236ed4 Fix nsigma in sampler order value (#4259) 2025-07-12 01:26:06 +03:00
Cohee 4f3eb7417e Fix oai_settings assignment in getPresetList 2025-07-11 22:31:51 +03:00
Forkoz b233402ac9 Ooba nsigma support. (#4258)
* nsigma index.html

* nsigma textgen-settings.js
2025-07-11 22:27:49 +03:00
Cohee 19a8a8625c Move event types + new events (#4257)
* 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
2025-07-11 22:00:04 +03:00
Cohee febb02ffcb /inject: auto-generate ID and fix argument description (#4253)
* /inject: auto-generate ID and fix argument description

* Fix default depth and role handling

* Return ID of the new inject
2025-07-11 13:25:29 +03:00
equal-l2 9842598325 Add vision support for Grok 4 (#4254) 2025-07-10 23:35:30 +03:00
Cohee 13e1d3190e gork-4 2025-07-10 19:44:36 +03:00
Cohee 0ae171985d MistralAI: Add new devstral models 2025-07-10 19:30:04 +03:00
Cohee f8b0e8f2ad Move system messages init into separate module (#4251)
* Move system messages init into separate module

* getSystemMessages => initSystemMessages
2025-07-10 19:22:16 +03:00
Cohee d785e7a7ce Makes sense that a new temp chat starts if you were already on a temp chat 2025-07-10 09:21:10 +00:00
Cohee f477ed1d74 Move CHAT_CHANGED injects revive listener to initDefaultSlashCommands 2025-07-10 00:11:00 +03:00
Cohee ea5181af08 Preset Manager: Add methods for reading/writing custom data (#4246)
* Preset Manager: Add methods for reading/writing custom data

* Fix loading novel extensions on load

* Move ensurePlainObject to utils

* Init empty object in convertNovelPreset
2025-07-09 23:55:08 +03:00