Commit Graph

3158 Commits

Author SHA1 Message Date
Kwaroran
96de87f629 chore: update version to 145.0.1 in configuration files 2024-12-26 07:40:20 +09:00
Kwaroran
7fab5aaf90 feat: add image property to bot presets during save operation 2024-12-26 07:40:01 +09:00
Kwaroran
103b6fddb2 style: enhance loading state UI with improved layout and text visibility 2024-12-26 06:03:25 +09:00
Kwaroran
259181bbe2 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-12-26 06:00:24 +09:00
Kwaroran
fe47f58c61 Add LoadingStatusState and improve tokenizer functionality 2024-12-26 06:00:07 +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
46065ebe13 fix: add missing definitions of plugin APIs (#690)
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it doesn't use models*
  - It doesn't use 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?
  - Only checked on the browser
- [ ] Did you add a type def?
  - It does nothing with types
# Description
In plugins.ts methods `addRisuReplacer` and `removeRisuReplacer` are
implemented but not defined (exported).
I thought that the definitions were simply missing. So I added only two
lines.
2024-12-26 04:56:08 +09:00
kwaroran
14cd6aa9b8 ✏️ Fix typos and tones of the pr template (#691)
# PR Checklist
- [ ] 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?
- [ ] Did you added a type def?

- It's just a change in the document (native language).

# Description
Fixed typo & changed the tone of the PR template, with the help of
Copilot.
2024-12-26 04:55:50 +09:00
Kwaroran
575eb0505e Bump version to 145.0.0 in configuration and related files 2024-12-26 04:55:12 +09:00
Kwaroran
2672195d92 Add preset related features 2024-12-26 04:29:14 +09:00
Kwaroran
c6cc258a50 Refactor preset handling and improve database snapshot logic 2024-12-26 03:18:00 +09:00
Do-hyun Ko
e7f509b51e ✏️ Fix typos and tones of the pr template 2024-12-25 22:27:48 +09:00
Do-hyun Ko
47cf303d1f fix: add missing definitions of plugin APIs 2024-12-25 22:17:48 +09:00
Kwaroran
d7f376b8db Change Plugin.md and version 2024-12-25 21:09:12 +09:00
Kwaroran
28d8bfdd22 Fix nativeFetch and comfy 2024-12-25 21:06:52 +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
8b6fc5bc8b Add max_tokens parameter to plugin documentation and request function 2024-12-25 00:31:28 +09:00
Kwaroran
7d9649b87e Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-12-25 00:22:54 +09:00
Kwaroran
0587f513f1 Bump version to 144.3.1 in configuration and related files 2024-12-25 00:19:40 +09:00
Kwaroran
b612d28f1b Refactor loadV2Plugin to use database plugins instead of passed plugins 2024-12-25 00:19:03 +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
29c9f0ad15 Bump version to 144.3.0 in configuration and related files 2024-12-24 23:15:10 +09:00
Kwaroran
027a591424 Remove V1 Plugin 2024-12-24 23:14:49 +09:00
Kwaroran
2f8904e567 Bump version to 144.2.0 in configuration and related files 2024-12-24 22:56:47 +09:00
Kwaroran
048652656c Add thoughts 2024-12-24 04:15:32 +09:00
Kwaroran
8f667d6394 Add Saving Icon 2024-12-23 17:07:19 +09:00
LightningHyperBlaze45654
4ddb932237 add: convert previous version's hypaV2Data 2024-12-20 23:38:40 -08: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
50cf5e65b8 Remove thoughts property from OpenAIChatExtra interface and clean up related request processing 2024-12-21 06:35:05 +09:00
Kwaroran
d4db95070e Update plugin documentation and types to support ReadableStream in provider results 2024-12-21 06:33:00 +09:00
Kwaroran
bd7b58a477 Remove risuLog function and recommend using console.log instead 2024-12-21 01:32:54 +09:00
Kwaroran
e1f5a8ef08 Bump version to 144.1.0 in configuration and related files 2024-12-21 01:29:57 +09:00
Kwaroran
709f45fa59 Add arrayBuffer support to fetchNative and update documentation 2024-12-21 01:29:45 +09:00
Kwaroran
219042f8ad Update plugin documentation to clarify nativeFetch method support and usage 2024-12-21 01:27:03 +09:00
Kwaroran
9d0402b7f5 Add support for multiple HTTP methods in streamed_fetch and fetchNative 2024-12-21 01:26:01 +09:00
Kwaroran
45e8ca5ed6 Update documentation for nativeFetch to clarify CORS restrictions and API design 2024-12-21 01:15:40 +09:00
Kwaroran
6860382bf1 Update plugin documentation to include mode parameter for replacer functions 2024-12-20 23:49:52 +09:00
Kwaroran
7cd49fc8c3 Add V2 plugin 2024-12-20 23:45:07 +09:00
Kwaroran
e5e01d0688 Fix error handling in gemini and add dataItem hotkey 2024-12-20 18:11:11 +09:00
Kwaroran
cc4bbdc8e2 Enhance LLM model flags to include requiresAlternateRole and update request processing to handle multimodal and thoughts data 2024-12-20 04:31:23 +09:00
Kwaroran
280fd31316 Update version to 143.9.1 in configuration and related files 2024-12-20 03:14:35 +09:00
Kwaroran
01da904c9b Gemini change thinking 2024-12-20 03:14:06 +09:00
Kwaroran
c937a65b1f Fix formatting of thoughts in request processing to ensure proper line breaks 2024-12-20 02:55:10 +09:00
Kwaroran
37d0870f26 Update version to 143.9.0 in configuration and related files 2024-12-20 02:54:13 +09:00
Kwaroran
4afe32a2c2 Add geminiThinking flag and enhance thoughts handling in chat processing 2024-12-20 02:53:58 +09:00
Kwaroran
bd14dcd038 Update version to 143.8.0 in configuration and database files 2024-12-20 02:21:00 +09:00
Kwaroran
68873452a0 Update version to 143.8.0 2024-12-20 02:16:05 +09:00
Kwaroran
73e94658fd Add thoughts 2024-12-20 02:15:48 +09:00
Kwaroran
755a10a7ae Improve translation handling by processing text in chunks for better performance 2024-12-19 05:40:52 +09:00