Commit Graph

763 Commits

Author SHA1 Message Date
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
kwaroran
9a53bd642e Add background embeding to module 2024-07-10 17:03:43 +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
bangonicdd
5040e7c87c Fix trigger operator 2024-07-10 13:47:17 +09:00
kwaroran
12dbd65003 add chatml related 2024-07-07 08:03:15 +09:00
kwaroran
dbdbeca49e refactor: Remove console.log statements and error alerts in lua.ts 2024-07-01 08:16:03 +09:00
kwaroran
8c0420ba3d fix: add nullish check 2024-07-01 08:11:20 +09:00
kwaroran
988665bc20 ref: change json lua 2024-07-01 06:41:28 +09:00
kwaroran
fa918b5436 feat: add old js related lua code 2024-07-01 06:25:22 +09:00
kwaroran
aba80667c8 fix: add editdisplay limit 2024-06-30 23:11:37 +09:00
kwaroran
5ea1f87f53 feat: add lua edits 2024-06-30 23:09:28 +09:00
kwaroran
a84f13e7ba ref: lua 2024-06-30 22:28:20 +09:00
kwaroran
baf659f620 feat: add removeChat function in triggers.ts 2024-06-29 18:34:38 +09:00
kwaroran
95452921fe feat: add lua triggers 2024-06-29 05:19:39 +09:00
kwaroran
25a60dbde0 add sonnet 3.5 for aws and custom (#541)
# 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
aws += sonnet-3-5
custom += sonnet-3-5, gpt-4-turbo
2024-06-29 00:47:57 +09:00