Commit Graph

728 Commits

Author SHA1 Message Date
kwaroran
d511089090 Add regex risu flags 2024-09-05 21:45:51 +09:00
kwaroran
7d14cf614c Add moduleIntergration 2024-09-05 20:44:57 +09:00
kwaroran
d58806c978 Add module Id changes 2024-09-05 20:28:44 +09:00
kwaroran
7ba6a81ff0 fix nai issue 2024-09-01 19:38:54 +09:00
kwaroran
aea0dd4088 Add cohere models 2024-09-01 19:34:41 +09:00
kwaroran
de6c90cbc4 Add fal.ai support 2024-09-01 01:50:21 +09:00
kwaroran
1473aeefcd fix module assets on export 2024-08-29 00:02:56 +09:00
kwaroran
3b1d0f7f35 Add gemini pro 0827 2024-08-28 20:11:15 +09:00
kwaroran
8bbdf06a55 Add module assets 2024-08-27 22:02:55 +09:00
kwaroran
cce2f12033 Add new module and preset format 2024-08-27 20:18:36 +09:00
kwaroran
c765cfabad add hash function to lua 2024-08-27 16:57:38 +09:00
kwaroran
c141f9398e Add kei stablediff 2024-08-27 16:56:40 +09:00
Junha Heo
c5bd829aff refactor: Update TTS function to handle auto audio path 2024-08-25 21:02:37 +09:00
Junha Heo
bcb352942e refactor: Update TTS function to handle auto audio path 2024-08-25 21:02:31 +09:00
kwaroran
a12a5d07f0 Add Gpt-SoVITS TTS, change google translate lang to auto (#600)
# PR Checklist
- [ v ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
- [ v ] 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?
- [ v ] Did you added a type def?

# Description

Add connection Gpt-SoVITS Api to ngrok turnel.

ttsReadOnlyQuoted support to japan Quote (「」)

and change google translate api language to auto (experiment)
2024-08-24 19:56:56 +09:00
kwaroran
aa6292eed8 Remove db.advancedBotSettings in request.ts (#597)
# 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
I think db.advancedBotSettings is code that should have been deleted,
but was not accidentally removed.
2024-08-24 19:55:30 +09:00
Junha Heo
a8d9db916b Merge branch 'main' of https://github.com/kwaroran/RisuAI into gpt-sovits-tts 2024-08-24 19:04:17 +09:00
Junha Heo
14fb2267c3 feat: Add support for gptSoVitsConfig in TTS processing 2024-08-24 17:37:27 +09:00
kwaroran
7603c60134 Fix mistral 2024-08-24 15:45:47 +09:00
kwaroran
32014d6501 Change additional assets to arcordion 2024-08-24 15:37:34 +09:00
kwaroran
d51e168590 Add gemini pro exp 0801 2024-08-24 15:16:33 +09:00
kwaroran
d5837e51a6 Add claude plain fetch header 2024-08-24 15:14:54 +09:00
sub-hub
1e3ddebf4b Remove db.advancedBotSettings in request.ts 2024-08-20 15:04:26 +09:00
sub-hub
7a979eadfb Fix reverse_proxy claude error 2024-08-17 13:08:20 +09:00
kwaroran
407b0830c8 Fix claude compatibility for custom 2024-08-17 02:18:57 +09:00
kwaroran
146ed8c5b0 Add claude caching and fix gpt4o chatgpt 2024-08-15 06:16:48 +09:00
kwaroran
b9a2a9f353 Add ChatGPT 4o 2024-08-14 21:54:52 +09:00
kwaroran
952ee5fb54 Add GPT4o 20240806 2024-08-09 21:37:18 +09:00
kwaroran
90d1660582 Update Kobold 2024-08-05 21:52:34 +09:00
kwaroran
6eb6743fb2 Add Mistral Nemo 2024-08-05 17:39:28 +09:00
kwaroran
e521a1b366 Add GPT4o mini 2024-08-05 17:35:15 +09:00
kwaroran
a0d87b8efe change default preset 2024-07-30 19:30:19 +09:00
kwaroran
634056b0cb refactor persona prompt 2024-07-29 23:40:45 +09:00
kwaroran
9d5b5da351 refactor name and icon get 2024-07-29 23:36:52 +09:00
kwaroran
47c3fab589 Add cohere preformatting 2024-07-29 01:28:29 +09:00
kwaroran
5b110ae632 rename changeGUI to updateDisplay and add id check 2024-07-29 01:15:25 +09:00
kwaroran
4381694089 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-07-29 01:10:14 +09:00
kwaroran
616a66db28 feat: add updateGUI 2024-07-29 01:10:09 +09:00
kwaroran
0bfb1530e4 feat: add comfyUI support (#579)
# 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?
- Due to issues with my development environment, I only tested in Node,
but it is expected to work in other environments as well.
- [x] Did you add a type def?

# Description
Added support for image generation using ComfyUI
2024-07-24 09:30:59 +09:00
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
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
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
Sunho Kim
edfe6f93fc fix: finer granularity cache key for dynamic assets 2024-07-15 08:25:32 -07:00
Sunho Kim
7a542c14d6 Fix bug in lua low level access 2024-07-15 07:33:16 -07: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
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