Laisky.Cai
dbe3930a8c
fix: Switch to channel-ratio
...
- Use channel ratios instead of group ratios in all applicable places
- Start using the lowest channel ratio of the specified channel's groups
2024-03-01 13:49:23 +00:00
Laisky.Cai
ba827b95e3
revert: Rework text model logic and update dependencies
...
- Rewrite model name for relay text
- Simplify logic and move logging statements
- Remove a check that filtered out models by model-mapping
- Remove abilities for the model mapping
- Lower numeric tolerance for test files
2024-03-01 02:14:32 +00:00
Laisky.Cai
3da0f62055
fix: Improve error handling and logging in channel update abilities
...
- Improve error handling in `UpdateAbilities()` method
- Log model name change request to the mapped model
2024-02-29 06:44:31 +00:00
Laisky.Cai
3c95e1bb0d
refactor: Refactor text controller logic
...
- Move the initialization of `requestBody` to a separate if block.
- Add a comment to indicate that `requestBodyBytes` is created for debugging use.
2024-02-22 03:25:45 +00:00
Laisky.Cai
b9972e0aa4
style: Upgrade relay controller text package
...
- Refactoring of the Text controller.
2024-02-22 03:09:46 +00:00
JustSong
bd888f2eb7
fix: fix prompt token is zero ( close #1023 )
2024-02-21 22:19:42 +08:00
JustSong
28d512a675
refactor: delete useless code
2024-02-18 02:23:31 +08:00
JustSong
de9a58ca0b
refactor: use config field to save config
2024-02-18 02:22:50 +08:00
JustSong
1aa374ccfb
refactor: use adaptor to do relay & test
2024-02-18 00:15:31 +08:00
Laisky.Cai
d548a01c59
feat: Handle errors, validate model names, and calculate quota usage ( #978 )
...
- Improved error handling in various modules for better stability and responsiveness.
- Optimized code in several files for improved efficiency and readability.
- Enhanced user experience by providing more detailed error responses in the controller.
- Strengthened security by ignoring sensitive files in `.gitignore`.
2024-02-12 21:35:40 +08:00
JustSong
2cd1a78203
chore: update module name
2024-01-28 19:38:58 +08:00
JustSong
b9d3cb0c45
refactor: split RelayTextHelper function
2024-01-28 19:14:46 +08:00
JustSong
2d760d4a01
refactor: refactor relay part ( #957 )
...
* refactor: refactor relay part
* refactor: refactor config part
2024-01-21 23:21:42 +08:00
JustSong
eed9f5fdf0
refactor: refactor relay part ( #935 )
2024-01-14 19:21:03 +08:00