Commit Graph
1746 Commits
Author SHA1 Message Date
coffeegrind123andCohee 0a136cbb2a Add Extension Hook for Stable Diffusion Prompt Processing (#4167)
* Update index.js

* Update index.js

* Update script.js

* Use a named constant in event emit

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-06-16 21:48:38 +03:00
Dmitry fece612f09 Merge pull request #4135 from D1m7asis/release
feat: Added AI/ML API Provider Support
2025-06-13 20:59:18 +03:00
Cohee 8b82325d30 Localization improvements 2025-06-12 20:54:55 +03:00
Yokayo 5b4198957a Work on tl 2025-06-13 00:37:21 +07:00
Cohee 8d2b9d2dab Secrets manager (#4131)
* Secret manager (now for real)

* Refactor secret manager dialog

* Add error handling to secrets migration

* Adjust default value

* Add secret-id slash command

* Add secret management slash commands

* Improve type definitions

* Improve compatibility of UUID generator

* Add copy buttons to manager view

* Improve compatibility with Vertex AI service account
- Changed to input since textarea can't be used with datalist
- Unblock regular key placeholder
- Save email as a key label
- Interrupt validation if the input is a UUID (autocompleted)

* Add optional label input for secret values in key manager dialog

* Update masking rules

* /secret-id: make the arg "required" (it's not)
2025-06-11 21:26:19 +03:00
CoheeandRossAscends b3c636fe91 Refactor and fix type errors in WI and script modules (#4123)
* remove unnecessary arg passage from WI helper funcs

* remove some typescript red from script.js

* hide in shame

* Add JSDoc to helper functions

* Fix fav_ch_checked not updating

* Move PWA mode match to firstLoadInit

* Fix more type errors and deprecations

* Fix the rest of type errors in script.js

---------

Co-authored-by: RossAscends <124905043+RossAscends@users.noreply.github.com>
2025-06-08 19:14:03 +03:00
Cohee bc35856ed0 Clean-up comments 2025-06-07 18:38:57 +03:00
Cohee cb8e82db2f Add delay for drawer animation when open drawers exist 2025-06-07 15:55:52 +03:00
Cohee 2205d5b2f1 Add delay to mass WI drawer toggle 2025-06-06 23:44:42 +03:00
Cohee a1c387e02a Remove early return 2025-06-06 22:03:02 +03:00
Cohee 6dc2077507 Fix expand/collapse all entries 2025-06-06 09:40:59 +00:00
Cohee 4bb5f8daa9 Wrap right menu in scrollableInner 2025-06-06 08:59:56 +00:00
RossAscends 506e2f2c6f - fix charPanel div heights
- fix noHotswap area height & flex dir
2025-06-06 13:57:22 +09:00
Cohee a10ded9785 Lint fix 2025-06-06 01:11:30 +03:00
Cohee 8c384a03bb Pure CSS drawer animations 2025-06-06 00:44:44 +03:00
RossAscends edbc257e81 - replace top bar toggle animations with opacity fades
- refactor MovingUI
- refactor getWorldEntry
2025-06-06 05:29:18 +09:00
Cohee 96fb85457f Gallery: add delete functionality for gallery items 2025-06-04 23:53:18 +03:00
Cohee c4a44bc08d rename chat: update to new popup 2025-06-03 00:19:31 +03:00
Nikolas BrownandCohee c4d89b2067 Gemini inline video (#4078)
* Add inline video attachment support for Gemini 2.5 Pro

* file formatting

* removed redundant function for saving video to message

* removed other redundant function for saving video to message

* Seperate inlining check for video

* Edit video token cost to be a conservative estimate of 10000 tokens

* fixed missing semicolon

* Adds seperate ui toggle for video inlining.

* Move mes_video out of img_container

* Remove title from video element for now

* Better visibilty of video with controls

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-06-01 15:04:16 +03:00
Cohee 3ec9b1a099 Implement data clean-up dialog (#4072)
* [wip] Add user data cleanup service

* Add clean-up report viewer

* Fix review comments

* Add function comments

* Implement item actions

* Fix UI styles

* Add placeholder for empty results, update category description view

* Add displayEmptyPlaceholder method to show message when results list is empty

* Adjust menu buttons row

* Delete char-scoped data bank attachments on character deletion

* Data Bank: Handle character attachments on rename

* Remove line breaks in description strings

* Drop the category when the last item is deleted

* Skip invalid hashes instead of bailing
2025-06-01 13:56:34 +03:00
Cohee 7ca8c4591f Allow swipe right to generate first message in non-pristine chats
Fixes #4074
2025-05-31 19:02:35 +03:00
Cohee 89ef54f286 Do not replace inline HTML img with image embed (#4063) 2025-05-29 21:44:16 +03:00
Cohee e1e2d3e726 Recent chats: add delete and rename buttons (#4051)
* [wip] Add rename/delete for recent chats

* Implement deleteCharacterChatByName

* Fix character name usage in deleteCharacterChatByName function
2025-05-29 21:21:53 +03:00
omahs d7d20a67fa Fix typos 2025-05-29 11:56:59 +02:00
Cohee 817ae20c3b Allow vertical scroll in import menu 2025-05-27 22:31:16 +03:00
Cohee 34c25300e5 Trim whitespace before replacing line breaks in unknown elements 2025-05-25 00:52:03 +03:00
Cohee 449522c3aa Combine all toastr settings into one object 2025-05-23 20:01:53 +03:00
RossAscends e6d5830f33 remove old toast config 2025-05-23 20:39:47 +09:00
RossAscends 26fd06335e Toasty Click to close hint 2025-05-23 20:38:05 +09:00
RossAscends 341fa17ba3 Hack-free Toast 2025-05-23 20:31:31 +09:00
RossAscends 7fc97a3b9a Zen Toast 2025-05-23 20:27:39 +09:00
Cohee 5ac472fbac Implement creator's note style tag preferences (#3979)
* Implement creator's note style tag preferences

* Decouple external media preference from style preference

* Allow explicitly empty prefixes in decodeStyleTags

* Fix Copilot comments

* Refactor global styles management into StylesPreference class

* Refactor openAttachmentManager to return an object instead of an array

* Unify header structure

* Re-render characters panel on setting initial preference

* Add note about classname prefixing

* Rename event handler
2025-05-22 22:32:53 +03:00
NijikaMyWaifuandCohee 157315cd68 Add Vertex AI express mode support (#3977)
* Add Vertex AI express mode support
Split Google AI Studio and Vertex AI

* Add support for Vertex AI, including updating default models and related settings, modifying frontend HTML to include Vertex AI options, and adjusting request processing logic in the backend API.

* Log API name in the console

* Merge sysprompt toggles back

* Use Gemma tokenizers for Vertex and LearnLM

* AI Studio parity updates

* Add link to express mode doc. Also technically it's not a form

* Split title

* Use array includes

* Add support for Google Vertex AI in image captioning feature

* Specify caption API name, add to compression list

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-05-22 20:10:53 +03:00
Cohee 6eeb2dcd75 Label chat as not pristine when messages are deleted 2025-05-21 23:08:23 +03:00
Cohee 34490c9614 Display loader earlier, init toast classes in power-user 2025-05-21 20:35:03 +03:00
RossAscends da16c551f0 more toasty edge case fixes 2025-05-21 19:03:26 +09:00
RossAscends fe0db6ec78 add VSC MARK comments to vital script.js funcs 2025-05-21 17:41:24 +09:00
RossAscends 87f547cd87 add option for toastr location to themes 2025-05-21 15:07:47 +09:00
aalizelauandCohee 77f5ef3424 Hide tag for character (#4019)
* Add tagOptions parameter to printTagList for character-specific filtering

* Add toggle functionality to hide tags in tag management popup

* Add translations for "Hide on character card" in multiple locale files

* Add is_hidden_on_character_card property to newTag function

* applied linter

* revert back `DEFAULT_TAGS_LIMIT`

* Remove debug logs

* Adjust HTML

* Render list and save settings on toggle change

* Make tag manager wide

---------

Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2025-05-20 20:41:03 +03:00
Cohee 213a619b33 Change server ping to POST method
Closes #4006
2025-05-17 16:50:02 +03:00
Cohee 9438b5c4aa Cancel debounced metadata save before clearing chat 2025-05-17 15:44:51 +03:00
Cohee e5677b620d Cancel debounced chat save before clearing chat 2025-05-17 15:38:52 +03:00
Cohee b571723f94 Wait for chat save before close or create new chat 2025-05-17 09:17:32 +03:00
Cohee e52b3afea9 Wait for current chat to finish saving before allowing to switch 2025-05-17 08:45:12 +03:00
Cohee ca4f007009 Fix chat manager in group chats 2025-05-17 08:30:53 +03:00
Cohee 7a23fe794e Hide buttons on welcome assistant message 2025-05-14 10:41:15 +03:00
Cohee 241f718df7 Remove redundant version check 2025-05-13 20:37:15 +03:00
Cohee 637e9d5469 Set any char as assistant. Rework welcome prompt 2025-05-12 20:50:17 +03:00
Cohee d5c56fa405 Indicate welcome page assistant in the list 2025-05-12 19:52:14 +03:00
Cohee 31e2cf714a Permanent assistant autocreation and temporary chat restore 2025-05-12 02:14:54 +03:00