Commit Graph

38 Commits

Author SHA1 Message Date
kwaroran
8a782ab24f add assetprompt cbs 2025-03-13 12:13:09 +09:00
kwaroran
5c2d821445 Add automatic cache point 2025-03-10 13:57:02 +09:00
kwaroran
5300c53c7f Fix cache indexes 2025-03-10 13:14:20 +09:00
Kwaroran
93a53da983 Add cache point 2025-03-08 17:49:19 +09:00
Kwaroran
614f7b2f17 fix: improve error handling in chat message logging 2025-01-31 17:39:34 +09:00
Kwaroran
757a944686 Add inlayErrorResponse 2025-01-31 17:38:14 +09:00
kwaroran
1d98a63d4c feat: apply positionParser to alternate global note (#724)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [ ] Have you added type definitions?

# Description
This PR ensures that the 'position' lorebook decorator is correctly
applied to alternate (replaced) GlobalNotes.
Thank you for your time and consideration.
2025-01-17 22:53:45 +09:00
bangonicdd
172efe4d68 suggestion: apply 'processScriptFull()' to 'editprocess' mode regex script 2025-01-17 03:58:20 +09:00
bangonicdd
23fd706d9b feat: apply positionParser to alternate global note 2025-01-17 00:23:14 +09:00
Bo26fhmC5M
50361d7aa2 feat: Implement HypaV3 ratio-based memory 2025-01-12 11:05:18 +09:00
Kwaroran
cc223dfefa feat: limit thoughts extraction based on maxThoughtTagDepth setting 2024-12-27 15:56:48 +09:00
kwaroran
b874ed42ed HypaV2 context deletion safety (#680)
# PR Checklist
- [x] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions? <<
Checked on browser only, works fine
- [x] Did you added a type def?

# Description
HypaV2 data's large type definition update.
```ts
    mainChunks: { // summary itself
        id: number;
        text: string;
        chatMemos: Set<string>; // UUIDs of summarized chats
        lastChatMemo: string;
    }[];
    chunks: { // split mainChunks for retrieval or something. Although quite uncomfortable logic, so maybe I will delete it soon.
        mainChunkID: number;
        text:string;
    }[];
```
With this, ensure that mainChunks is relevant on chat context change by
deletion

If there is no UUID in the chat context, but it exists on chatMemos on
certain mainChunk, removes it.

Changed index.svelte.ts to update args on each call to ensure hypav2 to
stay adaptive on this change without refreshing the page

Also changed mainChunks to be pushed instead of unshifted
2024-12-26 05:02:33 +09:00
Kwaroran
1c51afc626 Enhance plugin functionality by adding optional provider parameters and improving thoughts extraction regex 2024-12-25 04:55:05 +09:00
kwaroran
98ca1736ab Fix thoughts extraction regex for multiline content handling (#687)
# PR Checklist
- [x] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? if it dosen't, did you blocked it in those versions?
- [ ] Did you added a type def?

# Description

This PR updates the regex used for extracting <Thoughts> content to
handle multiline cases reliably. The previous regex (.+?) had
limitations when processing text spanning multiple lines, as it could
not match content with line breaks.
2024-12-24 23:16:20 +09:00
Kwaroran
027a591424 Remove V1 Plugin 2024-12-24 23:14:49 +09:00
HyperBlaze
ea2fc1ad26 Merge branch 'kwaroran:main' into main 2024-12-20 23:36:41 -08:00
Bo26fhmC5M
6d182a8ad3 Fix thoughts extraction regex for multiline content handling 2024-12-21 13:07:57 +09:00
Kwaroran
7cd49fc8c3 Add V2 plugin 2024-12-20 23:45:07 +09:00
Kwaroran
4afe32a2c2 Add geminiThinking flag and enhance thoughts handling in chat processing 2024-12-20 02:53:58 +09:00
Kwaroran
73e94658fd Add thoughts 2024-12-20 02:15:48 +09:00
HyperBlaze
cd3294d529 Merge branch 'kwaroran:main' into main 2024-12-15 14:13:02 -08:00
Kwaroran
f4b78480f3 Rework realm and several bug fixes 2024-12-14 19:09:28 +09:00
Kwaroran
a984b823a6 Update inlay syntax to support 'inlayed' type and adjust parsing logic 2024-12-13 00:09:13 +09:00
Kwaroran
5174082796 Add Gemini related features 2024-12-12 08:38:33 +09:00
Kwaroran
61763deaa7 Update Gemini parameters 2024-12-12 07:57:01 +09:00
LightningHyperBlaze45654
69f44c03c6 Merge remote-tracking branch 'upstream/main' 2024-12-08 20:08:25 -08:00
kwaroran
71ef6099a8 Refactor preset chain name parsing to split by commas and trim whitespace 2024-12-08 22:21:59 +09:00
kwaroran
6d64acb9a9 Improve random selection logic for preset chain names 2024-12-08 22:14:53 +09:00
kwaroran
40ad42ffe9 Add new asset finder and preset chain 2024-12-08 21:25:57 +09:00
HyperBlaze
3d3e4dd6a1 refactor: logging changes
not so much but just in case:
2024-12-06 20:20:39 -08:00
HyperBlaze
c45eed40af fix: currentChat not being updated 2024-12-06 11:24:45 -08:00
LightningHyperBlaze45654
56646809a1 add logging 2024-12-06 08:49:00 -08:00
kwaroran
e0f6c58540 Refactor HypaProcesser instantiation to remove hardcoded model name and add models and others 2024-12-07 00:58:09 +09:00
kwaroran
18ea5aff4e Add notification feature with permission handling and UI toggle 2024-12-02 04:42:13 +09:00
kwaroran
8a6cfedcda Add ChatML and Rework display 2024-12-01 17:05:50 +09:00
Kwaroran
981ec3921e Add plenty of features 2024-11-27 06:01:42 +09:00
kwaroran
da907f4fc2 Move DBState to stores 2024-10-26 21:17:46 +09:00
kwaroran
e255199fcc Change setDatabase and getDatabase to accessing dbState 2024-10-25 19:11:41 +09:00