CaIon
f14f4eaf1a
✨ feat: refactor environment variable initialization and introduce new constant types for API and context keys
2025-07-03 13:10:25 +08:00
CaIon
2f04ab0daf
✨ feat: enhance environment configuration and resource initialization
2025-07-01 13:13:30 +08:00
Apple\Apple
175ea56fdd
🚚 Refactor(ratio_setting): refactor ratio management into standalone ratio_setting package
...
Summary
• Migrated all ratio-related sources into `setting/ratio_setting/`
– `model_ratio.go` (renamed from model-ratio.go)
– `cache_ratio.go`
– `group_ratio.go`
• Changed package name to `ratio_setting` and relocated initialization (`ratio_setting.InitRatioSettings()` in main).
• Updated every import & call site:
– Model / cache / completion / image ratio helpers
– Group ratio helpers (`GetGroupRatio*`, `ContainsGroupRatio`, `CheckGroupRatio`, etc.)
– JSON-serialization & update helpers (`*Ratio2JSONString`, `Update*RatioByJSONString`)
• Adjusted controllers, middleware, relay helpers, services and models to reference the new package.
• Removed obsolete `setting` / `operation_setting` imports; added missing `ratio_setting` imports.
• Adopted idiomatic map iteration (`for key := range m`) where value is unused.
• Ran static checks to ensure clean build.
This commit centralises all ratio configuration (model, cache and group) in one cohesive module, simplifying future maintenance and improving code clarity.
2025-06-18 18:00:49 +08:00
skynono
8c20aef5d1
fix: enabled hot reload SyncOptions
2025-06-12 17:17:07 +08:00
CaIon
1de4af1c74
fix(main.go): correct comment formatting for embed directives
2025-06-08 20:26:14 +08:00
Xyfacai
8343fe0740
refactor: message content 改成 any
...
refactor: message content 改成 any
2025-06-07 23:47:22 +08:00
CaIon
adb2c39564
feat: add panic recovery and retry mechanism for InitChannelCache; improve batch deletion of abilities in FixAbility
2025-05-23 01:26:52 +08:00
CaIon
4bf0d094c4
feat: add video URL support in MediaContent and update token counting logic
2025-05-03 21:12:07 +08:00
CaIon
5bf1f2f275
refactor: rename InitModelSettings to InitRatioSettings
2025-04-26 17:15:34 +08:00
CaIon
577b18a1a1
feat: enhance file handling and logging in the application
2025-04-11 16:23:54 +08:00
CaIon
ed855e78f7
refactor: Remove duplicate model settings initialization in main function
2025-04-10 00:07:34 +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
9dc851d6ef
feat: Initialize model settings and improve concurrency control in operation settings
2025-04-07 22:20:47 +08:00
1808837298@qq.com
4ea2556b29
refactor: Replace manual goroutine creation with gopool.Go
2025-02-19 18:38:29 +08:00
1808837298@qq.com
8f3752c423
feat: enhance session store security and configuration
...
- Add 30-day max age for session cookies
- Enable HttpOnly flag
- Set SameSite to strict mode
2025-02-11 17:06:51 +08:00
1808837298@qq.com
94c10d8def
fix: update session store configuration
...
- Change session cookie path from "/api" to "/"
- Remove HttpOnly flag
2025-02-11 15:53:15 +08:00
1808837298@qq.com
6a9c0fd2c0
feat: configure session store options for API routes
...
- Set session cookie path to "/api"
- Disable secure flag for local development
- Enable HttpOnly flag for improved security
2025-02-11 15:45:24 +08:00
CalciumIon
6e002a5f0f
feat: enhance environment variable handling and security features
2024-12-30 17:24:19 +08:00
CalciumIon
aefd53b683
refactor: token cache logic
2024-12-30 17:10:48 +08:00
CalciumIon
727236e6e7
fix: 渠道标签开启下使用ID排序出错
2024-12-09 20:38:03 +08:00
lianghaoyuan
9076ec5c63
feat: 添加.env配置文件和初始化环境变量
2024-09-24 11:39:02 +08:00
liuzhifei
566e26a8c6
add log db
2024-08-13 10:28:35 +08:00
CalciumIon
fda2fd2e53
feat: 优化Gemini模型版本获取逻辑
2024-08-02 17:23:59 +08:00
CalciumIon
d06018cd3f
chore: gopool
2024-07-19 01:07:37 +08:00
CalciumIon
e6de0c0bae
feat: add UPDATE_TASK env
2024-07-18 17:26:21 +08:00
CalciumIon
6c4c9d1c08
feat: only update task on master node
2024-06-26 17:23:03 +08:00
Xiangyuan Liu
c724781aac
revert: hide web embed
2024-06-13 18:28:47 +08:00
Xiangyuan Liu
05a4646b44
feat: suno api 支持
...
feat: 调试 suno
feat: 补充suno 文档
2024-06-13 10:35:48 +08:00
CaIon
80695f3c05
feat: vite
2024-03-23 19:09:09 +08:00
1808837298@qq.com
436afe925e
feat: 初步重构完成
2024-02-29 16:21:25 +08:00
1808837298@qq.com
1735981217
feat: 初步重构
2024-02-29 01:08:18 +08:00
CaIon
a2873b6d67
feat: token缓存逻辑更新(实验性)
2024-01-25 20:09:06 +08:00
CaIon
d82930f7b5
chore: UpdateMidjourneyTaskBulk with SafeGoroutine
2024-01-12 18:38:45 +08:00
CaIon
70ec0682f9
fix: recover panic
2024-01-07 22:25:03 +08:00
CaIon
7f60a91953
fix: 优化数据看板更新逻辑
2024-01-07 18:33:41 +08:00
CaIon
dd0abc9447
feat: 新增数据看板
2024-01-07 18:31:14 +08:00
Xyfacai
65166c1fa9
fix: 优化 mj 获取进度
2023-12-23 23:14:58 +08:00
CaIon
b6726096a5
fix VERSION
2023-12-21 23:11:52 +08:00
Xyfacai
7633ef1ea9
optimize: high cpu
2023-11-23 21:40:17 +08:00
CaIon
580dfd9485
添加pprof性能分析
2023-11-21 18:11:07 +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
51db57677e
chore: add MEMORY_CACHE_ENABLED env variable
2023-09-29 11:38:27 +08:00
CaIon
23d9554415
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# controller/log.go
# controller/relay-audio.go
# controller/relay-image.go
# controller/relay-text.go
# controller/relay.go
# middleware/distributor.go
# model/log.go
# web/src/components/OperationSetting.js
2023-09-17 20:59:12 +08:00
JustSong
3f9e723ce5
feat: create new log file when too many logs recorded
2023-09-17 16:35:30 +08:00
JustSong
315d7e8692
refactor: update logging related logic
2023-09-17 15:39:46 +08:00
JustSong
437b35e161
fix: only enable cors for relay routers to avoid csrf attack
2023-09-17 11:44:38 +08:00
CaIon
c0636950c0
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# controller/relay.go
# main.go
# middleware/distributor.go
2023-09-09 03:15:55 +08:00
JustSong
cf0ae05d50
feat: add batch update support ( close #414 )
2023-09-03 14:58:20 +08:00
JustSong
574be5bd1d
perf: initialize all token encoder when starting ( close #459 , close $460)
2023-08-26 13:02:02 +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