Commit Graph

50 Commits

Author SHA1 Message Date
Xyfacai
60d73d2a27 fix(db): 修复 db migration 报错过多可能卡住的隐患 2025-07-20 10:11:35 +08:00
CaIon
7ddee5ea2f Merge branch 'alpha' into mutil_key_channel
# Conflicts:
#	controller/channel.go
#	docker-compose.yml
#	web/src/components/table/ChannelsTable.js
#	web/src/pages/Channel/EditChannel.js
2025-07-06 10:33:48 +08:00
creamlike1024
4a725f8bb0 fix: 使用日志分组查询 2025-06-19 17:17:32 +08:00
CaIon
7d126706fc temp 2025-06-16 21:01:57 +08:00
CaIon
558e67d991 feat(channel): enhance AddChannel functionality with structured request handling 2025-06-16 00:37:22 +08:00
CaIon
c6226f3678 feat(database): implement database migration logic for PostgreSQL and add fast migration fallback 2025-06-14 19:47:44 +08:00
CaIon
a9ec62eea8 🐛 fix(ability, channel): standardize boolean value handling across database queries 2025-06-14 18:15:45 +08:00
CaIon
4371717c78 fix: Resolving conflicts caused by mixing multiple databases 2025-06-14 17:51:05 +08:00
CaIon
ac06e9a46f feat: Add CheckSetup function call in main to ensure proper initialization #942 2025-04-08 18:14:36 +08:00
CaIon
eca18ce25c fix: Improve setup check logic and logging for system initialization 2025-04-04 21:27:24 +08:00
CaIon
f33ebc8e2c feat: Implement system setup functionality 2025-04-03 18:57:15 +08:00
Seefs
884e25325f feat: Support postgresql:// dsn format 2025-03-12 21:08:47 +08:00
1808837298@qq.com
0be6c5ee69 chore: replace sqlite lib with prue go lib 2025-02-11 18:34:34 +08:00
1808837298@qq.com
c8a8526ff3 feat: modify channel model_mapping column type to TEXT
- Change `ModelMapping` column type from varchar(1024) to TEXT in channels table
- Add MySQL migration script to alter column type during database initialization
- Improve database schema flexibility for storing complex model mappings
2025-02-06 14:35:14 +08:00
CalciumIon
e0b7300239 fix: try to fix pgsql #682 2024-12-31 02:06:30 +08:00
CalciumIon
aefd53b683 refactor: token cache logic 2024-12-30 17:10:48 +08:00
1808837298@qq.com
05f35fd024 feat: 不自动生成系统访问令牌 2024-09-25 16:31:25 +08:00
liuzhifei
3a6a30a811 support log db 2024-08-13 10:29:55 +08:00
CalciumIon
eca52104cc chore: 重构 2024-06-27 19:30:17 +08:00
Xiangyuan Liu
05a4646b44 feat: suno api 支持
feat: 调试 suno

feat: 补充suno 文档
2024-06-13 10:35:48 +08:00
CaIon
9df64bcad4 fix: try to fix sqlite database migration (#231) 2024-05-16 16:10:25 +08:00
CaIon
38305d7703 fix: midjourneys table 2024-03-20 21:49:54 +08:00
CaIon
9cd256fc7f chore: drop idx_channels_key on start 2024-03-12 00:35:12 +08:00
1808837298@qq.com
5ddb37c12f feat: add "/api/status/test" 2024-03-04 19:32:59 +08:00
CaIon
dd0abc9447 feat: 新增数据看板 2024-01-07 18:31:14 +08:00
CaIon
7eeacd2c8f enable parseTime=true 2023-12-27 16:47:32 +08:00
CaIon
9c7456b0a6 enable mysql parseTime 2023-12-27 15:33:35 +08:00
Calcium-Ion
f439c4d553 Merge branch 'songquanpeng:main' into main 2023-10-30 16:12:09 +08:00
Bryan
58b6c88f7b fix: fix postgresql support (#606)
* fix postgresql support

fixes #517

* fix: fix pg support

* chore: delete useless code

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-10-22 18:38:29 +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
JustSong
5ad4bcea7f chore: add database migration prompt 2023-10-02 12:13:30 +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
igophper
27b290c578 fix: fix baidu's embedding api (#398)
* fix:judge baidu embeddings input type

* chore: add back update all channels balance

* chore: update default configuration for sql connection

---------

Co-authored-by: JustSong <songquanpeng@foxmail.com>
2023-08-13 00:45:04 +08:00
JustSong
c563e1ed91 feat: support PostgreSQL now 2023-08-12 19:20:12 +08:00
JustSong
2586fe09eb perf: flush response after response handled (close #364) 2023-08-12 18:10:15 +08:00
JustSong
8a2f1b64ec fix: set connection limits for database 2023-08-12 10:05:25 +08:00
JustSong
b7a89340e1 chore: format logs 2023-06-22 10:59:01 +08:00
JustSong
b0b0ed2013 chore: print more logs 2023-06-22 01:12:28 +08:00
JustSong
64d026fc1a fix: only master node can migrate database 2023-06-22 00:52:27 +08:00
JustSong
532b60f753 feat: now user can check its topup & consume history (close #78, close #95) 2023-06-10 16:04:04 +08:00
JustSong
cbf339284c feat: support group now (close #17, close #72, close #85, close #104, close #136)
Co-authored-by: quzard <1191890118@qq.com>
2023-06-07 23:26:00 +08:00
JustSong
08a628a7f8 chore: set initial quota for root user 2023-05-21 10:05:34 +08:00
JustSong
9c529f9674 feat: able to set initial quota for new user (close #22) 2023-04-26 21:40:56 +08:00
JustSong
be2b3f3fc6 feat: now user can top up via redemption code (close #9) 2023-04-26 17:02:26 +08:00
JustSong
12aa6c352b Relay done but not working 2023-04-23 18:24:11 +08:00
JustSong
9ca6adf4a1 Able to manage token now 2023-04-23 12:43:10 +08:00
JustSong
074df0f131 Remove useless page 2023-04-22 21:41:16 +08:00
JustSong
483bd64d8f Rename to One API 2023-04-22 21:14:09 +08:00
JustSong
4cbef0780e Initial commit 2023-04-22 20:39:27 +08:00