Commit Graph

2585 Commits

Author SHA1 Message Date
Kwaroran
61e21cea49 Add metadata cbs 2025-05-18 21:43:40 +09:00
Kwaroran
4a166eb4a1 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-05-18 17:21:04 +09:00
Kwaroran
90d1a0ebf4 Bump version to 160.0.2 in configuration and source files 2025-05-18 17:18:57 +09:00
Joseph Kang
5e330424f4 Add getDescription function (was missing)
The `getDescription(triggerId)` function, documented at:
https://kwaroran.github.io/docs/srp/lua/#getdescriptiontriggerid
was missing from the codebase and has now been added.
2025-05-18 17:16:22 +09:00
kwaroran
7894405096 fix: remove dupilacted nai settings input (#850)
# 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

Removed duplicated nai settings inputs for `noise_schedule` and
`cfg_rescale`.

### Before


![image](https://github.com/user-attachments/assets/3708be6a-8b04-41f4-9bf0-c2cb4af9e29c)

### After


![image](https://github.com/user-attachments/assets/df3fcf2b-b8e1-4594-ab7e-5f0d8cdcc88c)
2025-05-18 17:15:57 +09:00
Bo26fhmC5M
ba150a0913 feat: add BGE-m3-ko embedding 2025-05-18 14:31:35 +09:00
Bo26fhmC5M
a41ac074db fix: pass message index when processing regex script 2025-05-18 13:01:32 +09:00
niceandneat
74a463793d fix: remove dupilacted nai settings input 2025-05-17 10:15:57 +09:00
Kwaroran
f9634af12b Bump version to 160.0.1 in configuration and source files 2025-05-17 03:13:19 +09:00
Kwaroran
14a0166327 Fix dupicated keys 2025-05-17 02:51:16 +09:00
Kwaroran
dcffc9e323 Bump version to 160.0.0 across configuration files 2025-05-17 02:50:10 +09:00
Kwaroran
fcaf056049 Add new LLMs 2025-05-17 02:49:53 +09:00
kwaroran
60755b907c Merge branch 'main' into main 2025-05-17 01:11:02 +09:00
kwaroran
e5fededc69 Merge branch 'main' into lualore 2025-05-17 01:09:37 +09:00
kwaroran
3390e7b11c Merge branch 'main' into patch-2 2025-05-17 01:09:01 +09:00
kwaroran
f9f0b5dd31 feat: Open read-only access to persona name/desc from Lua (#847)
# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [x] 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?
- [x] Have you added type definitions?

# Description

This PR adds read-only persona name and description access from Lua by
adding `getPersonaName(triggerId)` and
`getPersonaDescription(triggerId)`. The description is parsed before
returning.
2025-05-17 01:08:21 +09:00
Bo26fhmC5M
85753a76ef feat: implement preset and parallel requests for HypaV3 2025-05-16 22:18:13 +09:00
enzi221
a758b574f5 fix: Pluralize name 2025-05-16 03:37:54 +09:00
enzi221
40e91e59a7 feat: Return all lore books of same name without sort 2025-05-16 03:36:50 +09:00
poroyo
4fca6f26b4 feat: store prompt preset name, toggles, and text in chat metadata when enabled 2025-05-16 02:20:48 +09:00
enzi221
e44ac16b00 feat: Open persona name/desc access from Lua 2025-05-14 20:36:36 +09:00
enzi221
1b8a0762b1 fix: Return stringified false instead of literal false 2025-05-13 23:12:57 +09:00
enzi221
5a70dd1566 refactor: Get current character from db.characters like other functions 2025-05-13 16:16:27 +09:00
enzi221
953fc383f5 feat: Open read-only access to lorebooks from Lua 2025-05-13 14:58:16 +09:00
kwaroran
856af41da9 fix: prevent missing data field for recursive lorebook (#839)
# 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

Filled data field when creating a recursive lorebook.
2025-05-10 20:16:51 +09:00
bangonicdd
0bd947fcde feat: alertSelect for triggerlua 2025-05-07 22:47:35 +09:00
niceandneat
306aa5f894 fix: prevent missing data field for recursive lorebook 2025-05-04 21:12:15 +09:00
YH_KIM
133156d7d4 Merge remote-tracking branch 'origin/main'
# Conflicts:
#	src/ts/process/stableDiff.ts
2025-05-03 16:41:56 +09:00
YH_KIM
5b0ca460a5 Support numeric values in inputs and enhance image generation configs
Updated `SelectInput` and `OptionInput` to allow `value` as `string | number`. Extended image generation configurations with new features, including `cfg_rescale`, `noise_schedule`, and vibe data handling. Improved the setup for reference images and added support for mnemonist dependency in the package manager.
2025-05-03 16:38:04 +09:00
kwaroran
6db9bd08f1 Add more restrictions 2025-04-28 16:45:06 +09:00
kwaroran
f2839e66bb fix: update request limit to 5 and use fetchNative for API calls 2025-04-28 16:41:30 +09:00
kwaroran
165e6741bd feat: add request api with rate limiting and URL validation in Lua engine 2025-04-28 16:40:28 +09:00
kwaroran
bf55f77e0d Upgrade dep 2025-04-28 16:09:29 +09:00
kwaroran
468450c254 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2025-04-28 15:47:11 +09:00
kwaroran
aef8a75f76 Add nai cfg_rescale, noise_schedule options settings (#835)
# 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? -
I've checked web version only.
- [x] Have you added type definitions?

# Description

Added the ability to configure the `cfg_rescale` and `noise_schedule`
properties in the NovelAI settings.

# Example


![image](https://github.com/user-attachments/assets/437984aa-7612-4a38-9d34-311faf20ced4)
2025-04-28 15:43:41 +09:00
kwaroran
02b9050666 feat: add option to show Hypa modal button in chat menu (#823)
# 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?

# Preview

![preview1](https://github.com/user-attachments/assets/daaafcb2-a533-4bf1-b38f-e9b9b54f6769)


![preview2](https://github.com/user-attachments/assets/a632a66d-fc74-4d92-909a-88d450cd41fb)

# Description
This PR introduces following:
- feat: add accessibility setting to control visibility of Hypa V2/V3
modal button in chat menu
- feat: add summarization condition tip to HypaV3 modal
2025-04-28 15:43:06 +09:00
kwaroran
9fc92e50ae Fix: Avoid flatMap crash when output.images is undefined (#827)
# 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
In some ComfyUI workflows, output.images is often undefined when
intermediate outputs from text-based nodes are included and cannot be
suppressed in the response.
2025-04-28 15:42:54 +09:00
kwaroran
2c3ddd64e0 feat: module lorebook sort, import, export (#822)
# 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?
- [x] Have you added type definitions?

# Description
This PR adds sorting, import, and export functionality to the Module
Lorebook list.

I focused on preserving the existing code structure as much as possible
while implementing these changes.

Thank you for your time and review!
2025-04-28 15:42:40 +09:00
kwaroran
eb690750a7 Add: Caching tokenize (#826)
# 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
Previous PR #805 had a bug due to incorrect flow of if statements. I
apologize for this.
In this PR, I have improved the flow of if statement additionally from
the modification I made before.
Please refer [Fix: Correct tokenize flow in tokenizer encode
function](09228f3f86)
To see the how I changed the flow.

The biggest change of this commit is that it resolves the issue of
duplicate tokenization that was occurring
By add a `Line 122: if (result === undefined) {`
I think this change corrected the error even if people didn't turn on
the caching option.

And there is an error in the tikJS function, independent of this wrong
flow.
https://github.com/dqbd/tiktoken/issues/35
2025-04-28 15:42:19 +09:00
kwaroran
d86320d1bb Fix: Issue with Lorebook prompt prefix/suffix affecting matching (#819)
# PR Checklist
- [x] Have you added type definitions?

# Description
This PR aims to address the following issues:

* Fixed problems where prefixes and suffixes in the Lorebook prompt were
affecting keyword matching logic.
1. In full word matching, the first and last words of the body text
would consistently fail to match.
2. In general matching, using a persona name as a keyword would always
result in a match, regardless of context.
* I tried to preserve the original code structure as much as possible
while implementing these fixes. Please feel free to suggest changes to
the approach if you see a better way.

Thank you for your time and review.
2025-04-28 15:40:11 +09:00
kwaroran
05c51f333f Implement lazy loading of chats via lazy portal 2025-04-28 15:38:57 +09:00
niceandneat
a899a02d30 Add nai cfg_rescale, noise_schedule options settings 2025-04-28 01:21:10 +09:00
kwaroran
39048dd142 Add dice CBS 2025-04-23 12:44:32 +09:00
kwaroran
89257b2ed4 Accept cbr,cnl,cnewline without params 2025-04-23 12:41:48 +09:00
kwaroran
59fdcc20b3 Add randint and cbr, cnl, cnewline 2025-04-23 12:40:38 +09:00
kwaroran
2ca28aff78 Add u escape 2025-04-23 12:37:40 +09:00
kwaroran
e443eadb12 Add code cbs 2025-04-23 12:36:34 +09:00
kwaroran
e029456f01 Fix comment 2025-04-23 12:29:45 +09:00
kwaroran
91e3a352a3 Change download to blob 2025-04-23 12:26:27 +09:00
TiamaTiramisu
0f70c5404a fix: avoid flatMap crash when output.images is undefined 2025-04-21 17:57:46 +09:00