CalciumIon
5a39d2e171
feat: enhance user management and pagination features #518
...
- Updated GetAllUsers function to return total user count along with paginated results, improving data handling in user retrieval.
- Modified GetAllUsers API endpoint to accept page size as a parameter, allowing for dynamic pagination.
- Enhanced UsersTable component to support customizable page sizes and improved pagination logic.
- Added error handling for empty username and password in AddUser component.
- Updated LogsTable component to display pagination information in a user-friendly format.
2024-12-31 14:52:55 +08:00
CalciumIon
0a845ae69f
fix: try to fix pgsql #682
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
v0.4.4.3
2024-12-31 02:10:19 +08:00
CalciumIon
e0b7300239
fix: try to fix pgsql #682
2024-12-31 02:06:30 +08:00
CalciumIon
2de4de0006
fix redis
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
v0.4.4.2
2024-12-30 22:05:41 +08:00
CalciumIon
3514287e38
docs: update README
2024-12-30 20:56:54 +08:00
CalciumIon
72d7e3eb81
refactor: update group handling and rendering logic
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- Changed the structure of usableGroups in GetUserGroups to store additional information (ratio and description) for each group.
- Introduced a new renderRatio function to visually represent group ratios with color coding.
- Updated the Playground and EditToken components to utilize the new group structure and rendering options.
- Enhanced the renderGroupOption function for better UI representation of group options.
- Fixed minor comments and improved code readability.
v0.4.4.1
2024-12-30 19:51:00 +08:00
Calcium-Ion
cdf837bf11
Merge pull request #679 from kingxjs/main
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
fix: use document to build input fix copy command
v0.4.4.0
2024-12-30 18:02:21 +08:00
Calcium-Ion
d575739079
Merge pull request #677 from mageia/master
...
修复 PostgreSQL 中用户组查询错误
2024-12-30 18:01:51 +08:00
CalciumIon
629b2605cd
Merge branch 'main'
...
# Conflicts:
# model/user.go
2024-12-30 18:00:59 +08:00
Calcium-Ion
2ea4701eba
Merge pull request #680 from Calcium-Ion/refactor_redis
...
Refactor redis
2024-12-30 17:55:07 +08:00
CalciumIon
6e002a5f0f
feat: enhance environment variable handling and security features
2024-12-30 17:24:19 +08:00
迷糊虫
e266bc9121
使用原生document构建input再次尝试复制命令
2024-12-30 17:13:49 +08:00
CalciumIon
aefd53b683
refactor: token cache logic
2024-12-30 17:10:48 +08:00
Mageia
9ebdb08e21
修复 PostgreSQL 中用户组查询错误
...
- 修复 model/user.go 中的 SQL 查询,使用双引号将 group 列名括起来
- 对于 PostgreSQL 数据库,`group` 是保留关键字,需要用双引号括起来避免语法错误。该修改确保了代码在 PostgreSQL 和其他数据库(如 MySQL)中都能正常工作。
2024-12-30 10:23:55 +08:00
Calcium-Ion
7da427c20d
Merge pull request #676 from Calcium-Ion/refactor_redis
...
refactor: user cache logic
2024-12-29 17:55:52 +08:00
CalciumIon
c6ae827385
refactor: remove redundant group column handling in user queries
2024-12-29 17:02:30 +08:00
CalciumIon
966cdc1f7f
refactor: user cache logic
2024-12-29 16:50:26 +08:00
Calcium-Ion
837804927d
Merge pull request #674 from Yan-Zero/main
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
fix: Gemini 函数调用的文本转义,以及其他文件类型的 Base64 支持
v0.4.3.1
2024-12-29 13:11:02 +08:00
Yan
1cdb03d821
fix: Gemini 其他文件类型的支持(Base64URL)
2024-12-29 10:11:39 +08:00
Yan
9fc2f6a3b5
fix: Gemini 函数调用的文本转义
2024-12-29 06:11:44 +08:00
CalciumIon
dfa3f661a5
fix: playground request_start_time
2024-12-29 01:03:02 +08:00
CalciumIon
892e23d2f1
fix: prevent setting models to null in PersonalSetting component
2024-12-29 00:24:02 +08:00
CalciumIon
e326679b72
feat: add multi-file type support for Gemini and Claude
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- Add file data DTO for structured file handling
- Implement file decoder service
- Update Claude and Gemini relay channels to handle various file types
- Reorganize worker service to cf_worker for clarity
- Update token counter and image service for new file types
v0.4.3.0
2024-12-29 00:00:24 +08:00
CalciumIon
22244a9c5e
chore: update language in index.html to Chinese
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
v0.4.2.4
2024-12-28 20:43:26 +08:00
Calcium-Ion
32440f2ea7
Merge pull request #673 from Yan-Zero/main
...
fix: 转义 Gemini 工具调用中的反斜杠
2024-12-28 19:49:31 +08:00
Yan
b7b2347263
fix: 转义 Gemini 工具调用中的反斜杠
2024-12-28 18:29:48 +08:00
Calcium-Ion
b632c650bf
Merge pull request #672 from Yan-Zero/main
...
fix: add index in the tool calls when chat by stream (gemini)
2024-12-28 18:20:33 +08:00
Yan
49a0db1da8
fix: add index in the tool calls when chat by stream (gemini)
2024-12-28 17:56:31 +08:00
CalciumIon
46fcb691d5
refactor: Playground controller
2024-12-28 16:47:56 +08:00
CalciumIon
c917ce64db
refactor: streamline log processing by introducing formatUserLogs function
2024-12-28 16:40:29 +08:00
CalciumIon
9e25f05930
refactor: enhance log retrieval and user interaction in LogsTable component
2024-12-28 15:34:28 +08:00
CalciumIon
05e389fe6a
fix #663
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
v0.4.2.3
2024-12-27 21:59:05 +08:00
CalciumIon
6093ae6f30
fix: prevent duplicate models in user group retrieval
2024-12-27 21:25:44 +08:00
CalciumIon
e671b0d357
refactor: improve user group handling and add GetUserUsableGroups function
...
- Introduced a new function `GetUserUsableGroupsCopy` to return a copy of user usable groups.
- Updated `GetUserUsableGroups` to utilize the new function for better encapsulation.
- Changed variable names from `UserUsableGroups` to `userUsableGroups` for consistency.
- Enhanced `GetUserUsableGroups` logic to ensure it returns a copy of the groups, preventing unintended modifications.
2024-12-27 21:19:22 +08:00
CalciumIon
040d33f78b
update dockerignore
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
v0.4.2.2
2024-12-27 20:49:58 +08:00
CalciumIon
fe944b3c8d
fix: oauth bind
2024-12-27 18:32:11 +08:00
CalciumIon
5bbc730a6f
feat: update o1 default token encoder
2024-12-27 15:03:10 +08:00
CalciumIon
62469a5226
feat: support azure stream_options
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
v0.4.2.1
2024-12-26 22:51:06 +08:00
CalciumIon
bb48f5dcae
update model ratio
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
v0.4.2.0
2024-12-26 16:03:22 +08:00
Calcium-Ion
b3899a4635
Merge pull request #661 from tenacioustommy/fix-title-schema
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
fix delete title schema
v0.4.1.9
2024-12-26 14:27:07 +08:00
Calcium-Ion
b71e50339c
Merge pull request #662 from xqx333/main
...
fix 重试过程多次获取图片
2024-12-26 14:26:50 +08:00
CalciumIon
340b2a230f
fix: update render function for quota display in Detail page
2024-12-26 14:25:44 +08:00
xqx333
541e07e6e7
Update relay-text.go
...
在上下文中存入promptTokens,避免重试过程重复计算
2024-12-26 02:00:04 +08:00
tenacious
18e308bdf7
fix delete title schema
2024-12-26 00:24:45 +08:00
CalciumIon
620f9f19b1
fix: validate number input in renderQuotaNumberWithDigit and improve data handling in Detail page
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- Added input validation to ensure that the `num` parameter in `renderQuotaNumberWithDigit` is a valid number, returning 0 for invalid inputs.
- Updated the `Detail` component to use `datum['rawQuota']` instead of `datum['Usage']` for rendering quota values, ensuring more accurate data representation.
- Enhanced data aggregation logic to handle cases where quota values may be missing or invalid, improving overall data integrity in charts and tables.
- Removed unnecessary time granularity calculations and streamlined the data processing for better performance.
v0.4.1.8
2024-12-25 23:16:35 +08:00
CalciumIon
0d1ba65592
refactor: migrate group ratio and user usable groups logic to new setting package
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- Replaced references to common.GroupRatio and common.UserUsableGroups with corresponding functions from the new setting package across multiple controllers and services.
- Introduced new setting functions for managing group ratios and user usable groups, enhancing code organization and maintainability.
- Updated related functions to ensure consistent behavior with the new setting package integration.
v0.4.1.7
2024-12-25 19:31:12 +08:00
CalciumIon
b9e3331fb3
fix typo
2024-12-25 18:44:45 +08:00
CalciumIon
a48679fb4a
fix: update MaxCompletionTokens for model prefix handling in buildTestRequest function
2024-12-25 17:55:20 +08:00
CalciumIon
314ad072ae
fix: correct user retrieval in GetPricing function
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
v0.4.1.6
2024-12-25 14:29:52 +08:00
CalciumIon
f9e06342c6
fix: resolve pricing calculation issue ( #659 )
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
v0.4.1.5
2024-12-25 14:26:43 +08:00