Commit Graph

2151 Commits

Author SHA1 Message Date
kwaroran
6ec123dea5 Make logit_bias work for all gpt-based multimodal models & Add supports of gpt-4o tokenizer for reverse_proxy (#418)
# 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 fix the code which now make exception for gpt-based models so it can
send logit_bias to server and gpt4o with reverse_proxy automatically
choose new tokenizer.
2024-05-14 18:15:00 +09:00
sub-hub
42f7ff3365 Add GPT-4o in reverse_proxy 2024-05-14 09:16:14 +09:00
IHaBiS02
1aade242ec Add supports of gpt-4o tokenizer for reverse_proxy 2024-05-14 06:30:36 +09:00
IHaBiS02
4595a36adf Fix comments 2024-05-14 05:49:35 +09:00
IHaBiS02
2d71037e9b Fix some detail 2024-05-14 05:48:35 +09:00
IHaBiS02
73fda3bb93 Make exception on gpt based models from removing logit_bias 2024-05-14 05:48:14 +09:00
kwaroran
a79a00bd00 chore: Update version to 1.102.4 2024-05-14 03:02:48 +09:00
kwaroran
35c633bfcf chore: Update version to 1.102.3 2024-05-14 02:36:00 +09:00
kwaroran
14ef1d95ce feat: Add GPT-4o mode 2024-05-14 02:35:00 +09:00
kwaroran
8e4871a8a9 chore: Update version to 1.102.2 2024-05-13 00:50:13 +09:00
kwaroran
3442bbbd72 feat: Add @risuai/ccardlib dependency and update characterCards.ts 2024-05-13 00:49:52 +09:00
kwaroran
d5aa65b5e5 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-05-13 00:44:09 +09:00
kwaroran
f31ff9a399 Change realm api endpoiint 2024-05-13 00:44:07 +09:00
kwaroran
3f66a75f00 Add Traditional Chinese, Fix existing Chinese translations (translated by HionaKotka) (#412)
# 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
Dear HionaKotka in the RisuAI Discord, Thank you. Now RisuAI supports
Traditional Chinese using the file he translated. also modified the
existing Chinese translation.
And I also added Vietnam, which was missing from WelcomeRisu component.
Added traditional Chinese as an target language when using Google
Translate.
2024-05-09 13:57:41 +09:00
sub-hub
a2d9254312 Merge branch 'kwaroran:main' into main 2024-05-08 22:11:58 +09:00
sub-hub
ec364271bd Fixed existing Chinese translation (translated by HionaKotka) 2024-05-08 22:08:07 +09:00
sub-hub
bae5d06a68 Add Traditional Chinese language (translated by HionaKotka) 2024-05-08 22:08:07 +09:00
sub-hub
c0e7fdf431 feat: Add support for Vietnamese language in WelcomeRisu component 2024-05-08 21:58:18 +09:00
kwaroran
bad761154c Fix: handling more markdown in getNodetextToSentence (#411)
# 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
Sorry but there were some markdown tags that I missed, But I think It's
not an urgent patch like last time.
So If there are any tags I missed, I will continue commit to this pr
until the next update.
2024-05-08 08:27:07 +09:00
sub-hub
694b521b2e Fix: handling strong, em in getNodetextToSentence 2024-05-07 11:09:48 +09:00
kwaroran
c2f3054f63 chore: Update version numbers to 1.102.1 2024-05-07 04:30:54 +09:00
kwaroran
f3e492d9c8 Fix: Now combineTranslation applies the markdown to the result (#409)
# 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?
- [x] Did you added a type def?

# Description
I knew there was a `ParseMarkdown` function, but I didn't think it fit
the current situation, so I created a new `applyMarkdownToNode`
function,
but I didn't see much difference in the results, So if you think
`ParseMarkdown` is better, you can change my code to use that.
(To use `ParseMarkdown`, we need to create a parameter that allows us to
use `mconverted.parseInline` instead of `mconverted.parse` to the
ParseMarkdown function)
2024-05-07 04:30:17 +09:00
kwaroran
76a62ace2e Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-05-07 04:29:18 +09:00
kwaroran
b8abb977a2 feat: Add support for logical NOT operator in toRPN function 2024-05-07 04:29:16 +09:00
sub-hub
ca57cf6108 Fixed a mistake in translateHTML. 2024-05-06 17:14:27 +09:00
sub-hub
9b3571beeb Added markdown null check and reapply markdown in all cases
parent null check applyMarkdownToNode
2024-05-06 17:12:26 +09:00
sub-hub
e204eeb385 Update util.ts 2024-05-06 16:41:55 +09:00
sub-hub
8f9f075cdb Fix: Markdown Nodes Inherit inline styles 2024-05-06 14:04:00 +09:00
sub-hub
e1eaf08df8 Fix: now combineTranslation will Apply markdown 2024-05-06 13:30:38 +09:00
kwaroran
cca749caa3 Update README.md 2024-05-06 06:45:25 +09:00
kwaroran
a678e6c4b5 Update README.md 2024-05-06 06:45:13 +09:00
kwaroran
50fd644539 Update version to 1.102.0 2024-05-06 06:43:02 +09:00
kwaroran
e904d44eb5 Move combinetranslation to language 2024-05-06 06:40:05 +09:00
kwaroran
e4cf35f0e6 Add: New Option Combine Translation (#405)
# 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?
- [x] Did you added a type def?

# Description
Basically, this feature was created to combine a sentence together and
translate it when a display edit script splits one sentence into
multiple HTML tags.
I hope you confirm as this option will significantly improve translation
performance without modifying existing scripts! `(e.g. Automark)`
I also made `translateHTML` accept a `chatID` and optimized the existing
code to get the script from `charArg`.
2024-05-06 06:33:23 +09:00
kwaroran
22ad5bf69d Fixed ollama's hardcoded url (#404)
# PR Checklist
- [ ] Did you check if it works normally in all models? *ignore this
when it dosen't uses models*
 it does not need 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 me using nixos i cant really build it for my system. but i tested
the web version and do not see why it would not work for other versions.
furhtermore this is a backend issue so i doubt the ui changed anything
- [ ] Did you added a type def?
idk what that is. but i changed one line so i assume no

# Description
As described in #402 RisuAI would always try to reach localhost:11434 to
connect to ollama. completely ignoring the user supplied adress. this
fix addresses that. now it actually uses the correct url
2024-05-06 06:31:46 +09:00
sub-hub
be82cd9748 Fixed combineTranslation helper description 2024-05-05 14:16:06 +09:00
sub-hub
07eb230be3 Add combineTranslation feature that merging and translating separated HTML sentences 2024-05-05 11:49:15 +09:00
Yvonne
b389c86b76 Fixed hardcoded URL
now it takes it from the db.
2024-05-04 17:19:37 +02:00
sub-hub
a7509c4a35 Add: Sentence html Merge Translation Feature 2024-05-04 22:44:28 +09:00
sub-hub
120e9356b6 Update missing type imports 2024-05-04 18:05:43 +09:00
sub-hub
e19b672755 refactor: translateHTML function handle charArg with reusable variable 2024-05-04 18:04:13 +09:00
sub-hub
b54dc17402 fix: update translateHTML function to include chatID parameter 2024-05-04 17:49:06 +09:00
kwaroran
5b1447c7bc Fix hanurai to skip query chats when push to processor (#400)
# 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
This pr fixes the bug in the issue #399 
I think it's a bug that needs to be fixed regardless of what we discuss
in the issue, so I send a pull request before we discuss it.
2024-05-04 05:12:06 +09:00
sub-hub
e76a2459bb Fix hanurai to skip query chats when push to processor 2024-05-02 09:47:35 +09:00
kwaroran
2e88a52810 Update MainMenu.svelte to display patch update notification 2024-05-01 08:27:56 +09:00
kwaroran
31291cf587 Update URL for new version download in update.ts 2024-05-01 08:17:51 +09:00
kwaroran
6650f2a74e Update version numbers to 1.101.0 2024-05-01 08:15:57 +09:00
kwaroran
d3c2e5575e Update calc 2024-05-01 08:11:11 +09:00
kwaroran
899c633c26 Update version numbers to 1.100.3 2024-05-01 07:55:10 +09:00
kwaroran
b224387073 Update imports in GithubStars.svelte and MainMenu.svelte 2024-05-01 07:54:58 +09:00