CaIon
88a801af2d
🔧 fix(token_counter): update token encoder implementation and dependencies
2025-06-10 18:04:49 +08:00
wzxjohn
bdb1a2fcb9
feat: add oidc support
2025-03-11 15:52:03 +08:00
1808837298@qq.com
0876bc3f7f
feat: Improve decimal precision for quota and payment calculations
...
- Added github.com/shopspring/decimal for precise floating-point calculations
- Refactored quota and payment calculations in multiple files to use decimal arithmetic
- Updated go.mod and go.sum to include decimal library
- Improved precision in topup, relay, and quota service calculations
- Added support for more OpenAI model variants in cache ratio settings
2025-03-08 21:55:50 +08:00
1808837298@qq.com
0be6c5ee69
chore: replace sqlite lib with prue go lib
2025-02-11 18:34:34 +08:00
CalciumIon
7ae97088c3
chore: Update dependencies and refactor JSON handling #614
...
- Removed the `bytedance/sonic` dependency and replaced its usage with the standard `encoding/json` package for JSON marshalling in `relay-text.go`.
- Updated `go.mod` to reflect the removal of `sonic` and adjusted the version of `sonic/loader`.
- Cleaned up `go.sum` to ensure consistency with the updated dependencies.
2024-12-12 14:14:24 +08:00
CalciumIon
498b240409
feat: update go-epay
2024-12-05 17:45:54 +08:00
CalciumIon
d0395194d1
Update go.mod
2024-12-05 15:25:42 +08:00
CalciumIon
270857e370
feat: support br
2024-12-04 23:53:02 +08:00
CalciumIon
4496cb537e
chore: go.mod
2024-11-19 15:14:40 +08:00
lianghaoyuan
9076ec5c63
feat: 添加.env配置文件和初始化环境变量
2024-09-24 11:39:02 +08:00
CalciumIon
6b22319e27
Update go.mod
2024-08-27 20:30:46 +08:00
CalciumIon
b8664e71e6
feat: support vertex ai #377
2024-08-27 20:19:51 +08:00
CalciumIon
d06018cd3f
chore: gopool
2024-07-19 01:07:37 +08:00
1808837298@qq.com
2254b1c422
feat: update tiktoken
2024-05-30 21:45:58 +08:00
CaIon
456be72de2
chore: update tiktoken ( #254 )
2024-05-15 14:18:29 +08:00
CaIon
3721ed796c
feat: support aws claude
2024-04-23 11:44:40 +08:00
CaIon
107bd8d691
update go-epay
2024-04-07 14:42:03 +08:00
CaIon
14892a6582
feat: 初步兼容敏感词过滤
2024-03-20 17:07:42 +08:00
CaIon
aff0158632
chore: update dependency
2024-03-15 18:35:15 +08:00
CaIon
26387137fc
bump golang.org/x/crypto from 0.14.0 to 0.17.0
2023-12-27 16:32:42 +08:00
CaIon
8f9d355dde
bump golang.org/x/crypto from 0.14.0 to 0.17.0
2023-12-27 15:39:29 +08:00
CaIon
e604177820
upgrade pkg
2023-11-24 04:44:37 +08:00
Xyfacai
8b02d10e7d
optimize: upgrade tiktoken pkg
2023-11-23 21:41:50 +08:00
CaIon
580dfd9485
添加pprof性能分析
2023-11-21 18:11:07 +08:00
CaIon
1f3787eff2
fix image token calculate
2023-11-17 20:32:40 +08:00
CaIon
ba7e6324d3
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# README.md
# go.mod
# go.sum
# model/log.go
# web/src/App.js
# web/src/components/ChannelsTable.js
2023-10-16 17:31:26 +08:00
dependabot[bot]
0c31a9b31c
chore(deps): bump golang.org/x/net from 0.10.0 to 0.17.0 ( #591 )
...
Bumps [golang.org/x/net](https://github.com/golang/net ) from 0.10.0 to 0.17.0.
- [Commits](https://github.com/golang/net/compare/v0.10.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-14 12:34:46 +08:00
CaIon
46d817ab64
merge
2023-08-25 01:03:45 +08:00
CaIon
e60239c93d
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# controller/relay-text.go
# go.mod
# web/src/components/PersonalSetting.js
# web/src/components/TokensTable.js
# web/src/pages/Home/index.js
2023-08-25 00:51:02 +08:00
CaIon
68b24da6a6
add epay
2023-08-14 22:16:32 +08:00
JustSong
c563e1ed91
feat: support PostgreSQL now
2023-08-12 19:20:12 +08:00
glzjin
e32ab8b7f4
fix: update tiktoken-go's version to fix resource consumption problem ( #392 , close #161 )
2023-08-11 22:24:11 +08:00
JustSong
11e62bb63f
feat: support xunfei's llm ( close #206 )
2023-07-29 21:55:57 +08:00
JustSong
91f8d22369
feat: support zhipu's ChatGLM ( close #289 )
2023-07-23 11:51:44 +08:00
dependabot[bot]
05cea50087
chore: bump github.com/gin-gonic/gin from 1.9.0 to 1.9.1 ( #134 )
...
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin ) from 1.9.0 to 1.9.1.
- [Release notes](https://github.com/gin-gonic/gin/releases )
- [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md )
- [Commits](https://github.com/gin-gonic/gin/compare/v1.9.0...v1.9.1 )
---
updated-dependencies:
- dependency-name: github.com/gin-gonic/gin
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-02 13:13:36 +08:00
JustSong
badbb0962f
refactor: use built in smtp library ( close #34 )
2023-05-13 15:30:09 +08:00
JustSong
84c7ae8ad1
refactor: use tiktoken-go to calculate token number
2023-04-28 18:36:17 +08:00
JustSong
858504ff29
chore: update dependency
2023-04-25 21:56:23 +08:00
JustSong
4cbef0780e
Initial commit
2023-04-22 20:39:27 +08:00