Commit Graph

3123 Commits

Author SHA1 Message Date
Kwaroran
94501dbd77 Enhance character image handling with PNG chunk 2024-12-16 06:05:57 +09:00
bangonicdd
943e2738d5 suggestion: disabling regex script 2024-12-15 21:09:31 +09:00
Kwaroran
dcc48d5cb3 Add subtitle 2024-12-15 19:33:26 +09:00
Kwaroran
e2149ced1b Refactor risuChatParser 2024-12-15 01:00:48 +09:00
Kwaroran
556e1ea46a Bump version to 143.5.0 in configuration and related files 2024-12-14 20:10:25 +09:00
Kwaroran
7d4030cf7a Readd Gemini stream 2024-12-14 20:10:07 +09:00
Kwaroran
f4b78480f3 Rework realm and several bug fixes 2024-12-14 19:09:28 +09:00
Kwaroran
f2994b823e Bump version to 143.4.0 in configuration and related files 2024-12-13 00:09:33 +09:00
Kwaroran
a984b823a6 Update inlay syntax to support 'inlayed' type and adjust parsing logic 2024-12-13 00:09:13 +09:00
Kwaroran
361e65fad6 Bump version to 143.3.2 in configuration and related files 2024-12-12 12:56:35 +09:00
Kwaroran
fcd049eae8 Refactor parameter handling in requestGoogleCloudVertex function to filter parameters based on modelInfo 2024-12-12 12:56:17 +09:00
Kwaroran
146aaa1e7c Skip setting value for 'top_k' when 'ignoreTopKIfZero' is true and 'top_k' is 0 2024-12-12 12:34:10 +09:00
Kwaroran
a8782dbe76 Add statics 2024-12-12 11:45:06 +09:00
Kwaroran
99a17ca118 Update Tauri action version to 0.5.16 in GitHub Actions workflow 2024-12-12 10:53:50 +09:00
Kwaroran
7ed8d889cf Bump version to 143.3.1 in configuration and related files 2024-12-12 10:43:42 +09:00
Kwaroran
fc571d45ac Rename parameter 'ignoreTopKIfOne' to 'ignoreTopKIfZero' 2024-12-12 10:43:18 +09:00
Kwaroran
6d012c77fe Bump version to 143.3.0 in configuration and related files 2024-12-12 08:42:44 +09:00
Kwaroran
45959f49a8 Add spacing after inlay assets for improved layout consistency 2024-12-12 08:42:26 +09:00
Kwaroran
bb082f96bc Enhance media inlays with consistent styling and structure for images, videos, and audio 2024-12-12 08:42:10 +09:00
Kwaroran
5174082796 Add Gemini related features 2024-12-12 08:38:33 +09:00
Kwaroran
bffa3d73d4 Bump version to 143.2.0 in configuration and related files 2024-12-12 07:57:18 +09:00
Kwaroran
61763deaa7 Update Gemini parameters 2024-12-12 07:57:01 +09:00
Kwaroran
2f1e14d0d7 Add hasVideoInput flag and new Gemini model with audio and video support 2024-12-12 07:53:25 +09:00
Kwaroran
da4f081e36 Change 2024-12-11 04:30:39 +09:00
Kwaroran
2393730e05 Fix spelling of "Seperate" to "Separate" in language strings 2024-12-11 03:57:43 +09:00
Kwaroran
64e759e187 Fix mistral top_p and fix seperateParameters 2024-12-11 03:44:07 +09:00
Kwaroran
91e27f3a84 Bump version to 143.1.0 in configuration and related files 2024-12-10 22:48:52 +09:00
Kwaroran
dd424d851a Refactor image handling in character import/export functions to remove unnecessary reencoding 2024-12-10 22:47:11 +09:00
kwaroran
59ff43a4d8 Refactor getClosestMatch function to optimize Levenshtein distance calculation 2024-12-09 01:09:31 +09:00
kwaroran
01389e3e27 Remove debug logging from getClosestMatch function 2024-12-09 01:08:30 +09:00
kwaroran
73e98646f2 Upgrade trimmer 2024-12-09 01:06:08 +09:00
kwaroran
71ef6099a8 Refactor preset chain name parsing to split by commas and trim whitespace 2024-12-08 22:21:59 +09:00
kwaroran
6b9b3db953 Bump version to 143.0.1 in configuration and related files 2024-12-08 22:16:40 +09:00
kwaroran
15778e7c68 Add help tooltip to preset chain input in AdvancedSettings 2024-12-08 22:16:26 +09:00
kwaroran
1aa54be9be Fix translation strings in zh-Hant.ts for consistency and clarity 2024-12-08 22:15:46 +09:00
kwaroran
8d03623923 Merge branch 'main' of https://github.com/kwaroran/RisuAI 2024-12-08 22:14:55 +09:00
kwaroran
6d64acb9a9 Improve random selection logic for preset chain names 2024-12-08 22:14:53 +09:00
kwaroran
38c70ddd8b Update zh-Hant.ts (#679)
# PR Checklist
- [x] Did you check if it works normally in all models? *Not applicable
since this is a JSON translation update.*
- [x] Did you check if it works normally in all of web, local and node
hosted versions? *Not applicable since this is a JSON translation
update.*
- [x] Did you added a type def? *Not applicable since no type
definitions are involved in this PR.*

# Description
- Completed translation for the current version
- Adjusted wording:  
  - Changed "你" to "您" for consistent use of formal language
- Made minor refinements to better align with Traditional Chinese usage
(e.g., "圖像" changed to "圖片", etc.)
2024-12-08 21:26:48 +09:00
kwaroran
5178d97a5d bump version to 143.0.0 in configuration and related files 2024-12-08 21:26:13 +09:00
kwaroran
40ad42ffe9 Add new asset finder and preset chain 2024-12-08 21:25:57 +09:00
Rivelle
f8af6bddc4 Update zh-Hant.ts with Enhanced Translation and Formal Language Adjustments
- Completed translation for the current version
- Adjusted wording:  
  - Changed "你" to "您" for consistent use of formal language
  - Made minor refinements to better align with Traditional Chinese usage (e.g., "圖像" changed to "圖片", etc.)
2024-12-08 20:13:07 +08:00
kwaroran
c454f8df2d Update character card export to convert image data before writing 2024-12-08 18:46:10 +09:00
kwaroran
ccebb4d665 Roll back couple of things 2024-12-08 18:36:05 +09:00
kwaroran
8c8c8baf8e Fix Gemini Image Input Functionality (#678)
# PR Checklist
- [ ] 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
This PR fixes the image input functionality for the Gemini model.

### Issue with Existing Code
The previous implementation attempted to process images in the following
way:
1. In the `OpenAIChat` type, if the `memo` field started with
`inlayImage`, the `content` field's value was copied into a variable
called `pendingImage`.
2. Later, if the `chat` role was `'user'` and `pendingImage` was not an
empty string, the code processed the image.

However, it does not seem to work as expected in the current state.

### Update
I updated the image input handling to align with the method used in
RisuAI for handling GPT’s image input. Specifically, the changes
include:

1. In `image.ts`, I explicitly specified the `gemini-exp` model.
2. If the `chat` object has a `multimodals` field and the `role` is
`user`:
- I created an array called `geminiParts` to store `GeminiPart` objects.
- The `chat.content` value is set as the `text` field of the
`GeminiPart` object in the array.
- I then iterated over `chat.multimodals` and created an object for each
`image` type, formatting it to match the Gemini structure, and added it
to the `geminiParts` array.
- After the iteration, the `geminiParts` array is assigned to the
`parts` field of `reformatedChat`.


### Notes
- I removed the previous non-functional code entirely. If this causes
any inconvenience or violates any conventions, I sincerely apologize.
- As the final name of the next-generation Gemini model is currently
unknown, I restricted the functionality to the **gemini-exp** model in
the `image.ts` file for now. This can be updated later when the official
name is confirmed.

The Gemini model is currently very widely used, so I kindly request you
to review the updated code. If you have any feedback or if the changes
are not acceptable, I completely understand if this PR is rejected.

Thank you for your time and consideration! Let me know if there's
anything I can improve or clarify.
2024-12-08 15:49:10 +09:00
kwaroran
69a87a4d16 bump version to 142.0.0 in configuration and related files 2024-12-08 15:47:58 +09:00
kwaroran
1c28651541 bump version to 141.6.0 in configuration and related files 2024-12-08 15:47:16 +09:00
kwaroran
0c62b8bbfe Add pools 2024-12-08 15:46:54 +09:00
poroyo
9a1b22eae5 Fix code indentation 2024-12-08 05:28:57 +09:00
poroyo
697201bbb6 Remove unused variable 'pendingImage' 2024-12-08 05:16:13 +09:00
poroyo
94bb79df7e Fix Gemini image input issue 2024-12-08 05:04:06 +09:00