Commit Graph

2629 Commits

Author SHA1 Message Date
tiamatiramisu
c6d96d9616 feat: add comfyUI 2024-07-24 04:17:37 +09:00
bangonicdd
bf2377d7d5 add missing break line 2024-07-19 21:05:57 +09:00
kwaroran
7356b0426e Extend case for chat index and role (#577)
# 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?

# Description
With the recent increased utilization of custom styles, I've modified
the '{{chat_index}}' and '{{roll}}' cbs to cover a bit more cases.
Please review them to see if they meet your vision.


![image](https://github.com/user-attachments/assets/86ddb894-a497-4b60-b7b6-8c5040b276fb)
2024-07-18 12:30:54 +09:00
bangonicdd
9a784b4069 Extend case for chat index and role 2024-07-17 20:52:39 +09:00
kwaroran
6cc8bc8792 Fix various lua low level access bugs (#575)
### 1 Access key was not added properly
First commit fixes this 

### 2 Lua engine was getting killed when it waits for async function
runLua function gets run in two different paths (i.e. runLua for lua
edit triggers and another one for onOuput handling) However, when one of
invocations waits for another promise from js side (i.e. low level
function) to finish, it gives chance for next trigger mode to run which
would call `if(luaEngine){ luaEngine.global.close() }` that will close
lua engine for the invocation that was waiting for promise which is
problematic.

Second commit fixes this by having a pool of engine for each trigger
mode having single mutex that prevents running same engine at the same
time while allowing different tigger modes to run parallely

### 3 Break statements were missing making every trigger to run for
input event.
This was causing insane lagging and buggy behaviours. Third commit fixes
this.
2024-07-17 16:44:17 +09:00
kwaroran
7ca611d81d fix: finer granularity cache key for dynamic assets (#576)
Asset list can be different depending on character. Technically, we
should also invalidate cache when asset list is changed but I doubt
people will hit this case often. (bot maker somewhat hit it though so
maybe worth taking care of)
2024-07-17 16:44:00 +09:00
kwaroran
7fcd7ccdd9 change colorscheme 2024-07-17 16:43:35 +09:00
Sunho Kim
5b4a4f0e30 fix: add missing breaks 2024-07-15 21:12:14 -07:00
Sunho Kim
cb9514c508 fix: prevent lua engine getting killed and pool engines 2024-07-15 21:11:21 -07:00
kwaroran
88f8880509 change gui 2024-07-16 00:39:03 +09:00
Sunho Kim
edfe6f93fc fix: finer granularity cache key for dynamic assets 2024-07-15 08:25:32 -07:00
kwaroran
ebb06773e8 Add preset version 2 2024-07-15 23:57:56 +09:00
Sunho Kim
7a542c14d6 Fix bug in lua low level access 2024-07-15 07:33:16 -07:00
kwaroran
ba19470a76 chore: Bump version to 122.1.2 2024-07-15 22:57:12 +09:00
kwaroran
166d34d98b Fix bugs on lua simpleLLM, LLMMain, similarity, generateImage (#573)
All of these functions were not working since it needs a special trick
to call javscript async function within lua:
https://github.com/ceifa/wasmoon/issues/22

The proper trick for allowing async function was added.

Also added missing awaits for similarity search.

You can use following lua trigger to test out the behaviour:
```lua
listenEdit("editOutput", function(triggerId, data)
  local res = similarity(triggerId, data, {"happy", "angry", "sad"}):await()
  return res[1]
end)
```

Note you need https://github.com/kwaroran/RisuAI/pull/572 to test this
out since low level access is disabled for lua right now.
2024-07-15 22:51:17 +09:00
kwaroran
780c8172b2 chore: Bump version to 122.1.1 2024-07-15 22:49:35 +09:00
kwaroran
73dbb79e6b add dynamic asset cache 2024-07-15 22:48:07 +09:00
Sunho Kim
73b46edd0c Fix lua low level relatd bugs 2024-07-15 03:49:39 -07:00
kwaroran
78dfb8a80a chore: Bump version to 122.1.0 2024-07-15 19:49:33 +09:00
kwaroran
00a56ab447 Add CurrentCharacter import 2024-07-15 19:48:51 +09:00
kwaroran
1da936f2f0 add source cbs 2024-07-15 19:48:50 +09:00
kwaroran
d7ca575111 Refactor dateTimeFormat (#569)
# 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?

# Description
It appears that the current date time formatting in CBS is not working
as intended, I also added a format for the day of the week (`ddd` and
`dddd`), please review if this is appropriate.
2024-07-15 10:17:35 +09:00
bangonicdd
5d5a01b0cb add date format for short month 2024-07-12 19:38:24 +09:00
bangonicdd
bbf2b885d7 Refactor dateTimeFormat 2024-07-12 01:09:26 +09:00
kwaroran
18c84e5c18 fix dbbackuploader 2024-07-10 18:30:33 +09:00
kwaroran
cbf80d88e1 fix hideiconstore 2024-07-10 18:22:21 +09:00
kwaroran
7bb0146314 chore: Bump version to 122.0.1 2024-07-10 18:19:02 +09:00
kwaroran
f7f3591609 Add internal backup load 2024-07-10 18:18:43 +09:00
kwaroran
6309317945 fix nomodule error 2024-07-10 18:02:52 +09:00
kwaroran
d987ea3932 chore: Bump version to 122.0.0 2024-07-10 17:05:05 +09:00
kwaroran
9a53bd642e Add background embeding to module 2024-07-10 17:03:43 +09:00
kwaroran
3eafd786f6 update blank message 2024-07-10 16:54:46 +09:00
kwaroran
c7333ba133 fix store related issues 2024-07-10 16:32:09 +09:00
kwaroran
bbd86129de Fix trigger operator (#564)
# 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?

# Description
Currently, some of the operators in the trigger block seem to be working
in reverse.
2024-07-10 16:19:37 +09:00
kwaroran
0ee481d00d add hidechaticon 2024-07-10 16:17:33 +09:00
kwaroran
98576eeae4 fix style-data 2024-07-10 15:58:32 +09:00
kwaroran
f591721645 fix assistant not working in chatml 2024-07-10 15:52:58 +09:00
bangonicdd
5040e7c87c Fix trigger operator 2024-07-10 13:47:17 +09:00
kwaroran
91102cc3b7 fix fixnumber and makearray 2024-07-07 09:22:12 +09:00
kwaroran
bd084ddc0b chore: Bump version to 120.2.0 2024-07-07 08:04:26 +09:00
kwaroran
12dbd65003 add chatml related 2024-07-07 08:03:15 +09:00
kwaroran
a9240ca2d1 chore: Bump version to 120.1.3 2024-07-06 10:03:43 +09:00
kwaroran
deab7dbb4a fix defaultvars 2024-07-06 10:03:21 +09:00
kwaroran
a23c6a4cb8 chore: Bump version to 120.1.2 2024-07-06 06:49:19 +09:00
kwaroran
32e4ac8415 fix testerror 2024-07-06 06:49:05 +09:00
kwaroran
c6d63aa41b chore: Bump version to 120.1.1 2024-07-06 04:09:38 +09:00
kwaroran
904054a437 fix account warning issues 2024-07-06 04:09:24 +09:00
kwaroran
185dd5bc6b fix parse kv 2024-07-06 03:59:09 +09:00
kwaroran
e4315b333a remove parser logs and fix warns 2024-07-06 02:16:56 +09:00
kwaroran
02b0e0cf9f feat: add account warn 2024-07-06 01:44:10 +09:00