星野梦月
a18ea3cc16
feat: 支持强制使用 AUTH LOGIN 以解决 outlook 等邮箱的发件问题 ( #4112 )
...
* feat: 支持强制使用 AUTH LOGIN 以解决 outlook 等邮箱的发件问题
* fix: 修复通过 SSL 发送邮件时绕过 AUTH LOGIN 的问题
* fix: remove redundant branch, delete test file, add i18n translations
- Remove redundant else-if branch in SendEmail since auth is already
computed via getSMTPAuth()
- Delete option_smtp_auth_test.go as requested
- Add i18n translations for '强制使用 AUTH LOGIN' checkbox
2026-04-08 16:53:10 +08:00
Seefs
04f5dd0206
Merge pull request #3293 from zhongyuanzhao-alt/ft-waffo-payment-zzy20260317
...
feat(waffo): Waffo payment gateway integration
2026-03-18 23:48:05 +08:00
gz1007
a4d1ed6da5
feat: 支持通过环境变量配置搜索接口限流参数
2026-03-18 17:50:23 +08:00
zhongyuan.zhao
202a433f86
feat(waffo): Waffo payment gateway integration with configurable methods
...
- Add Waffo payment SDK integration (waffo-go v1.3.1)
- Backend: webhook handler, pay endpoint, order lock race-condition fix
- Settings: full Waffo config (API keys, sandbox/prod, currency, pay methods)
- Frontend: Waffo payment buttons in topup page, admin settings panel
- i18n: Waffo-related translations for en/fr/ja/ru/vi/zh-TW
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 18:04:58 +08:00
CaIon
5cf788f1bf
refactor: enhance API security with read-only token authentication and improved rate limiting
2026-02-06 21:26:26 +08:00
CaIon
327cc5fa23
fix: harden token search with pagination, rate limiting and input validation
...
- Add configurable per-user token creation limit (max_user_tokens)
- Sanitize search input patterns to prevent expensive queries
- Add per-user search rate limiting (by user ID)
- Add pagination to search endpoint with strict page size cap
- Skip empty search fields instead of matching nothing
- Hide internal errors from API responses
- Fix Interface2String float64 formatting causing config parse failures
- Add float-string fallback in config system for int/uint fields
2026-02-06 17:52:19 +08:00
Seefs
980af061fd
feat: TLS_INSECURE_SKIP_VERIFY env
2026-01-15 14:43:53 +08:00
Papersnake
14622aede6
fix: set MaxIdleConnsPerHost to 100
2025-12-02 09:55:03 +08:00
Leon
71c26a5843
feat: add environment variable switch for critical rate limit
2025-11-06 15:23:34 +08:00
t0ng7u
8294a76bc2
💱 feat(settings): introduce site-wide quota display type (USD/CNY/TOKENS/CUSTOM)
...
Replace the legacy boolean “DisplayInCurrencyEnabled” with an injected, type-safe
configuration `general_setting.quota_display_type`, and wire it through the
backend and frontend.
Backend
- Add `QuotaDisplayType` to `operation_setting.GeneralSetting` with injected
registration via `config.GlobalConfig.Register("general_setting", ...)`.
Helpers: `IsCurrencyDisplay()`, `IsCNYDisplay()`, `GetQuotaDisplayType()`.
- Expose `quota_display_type` in `/api/status` and keep legacy
`display_in_currency` for backward compatibility.
- Logger: update `LogQuota` and `FormatQuota` to support USD/CNY/TOKENS. When
CNY is selected, convert using `operation_setting.USDExchangeRate`.
- Controllers:
- `billing`: compute subscription/usage amounts based on the selected type
(USD: divide by `QuotaPerUnit`; CNY: USD→CNY; TOKENS: keep raw tokens).
- `topup` / `topup_stripe`: treat inputs as “amount” for USD/CNY and as
token-count for TOKENS; adjust min topup and pay money accordingly.
- `misc`: include `quota_display_type` in status payload.
- Compatibility: in `model/option.UpdateOption`, map updates to
`DisplayInCurrencyEnabled` → `general_setting.quota_display_type`
(true→USD, false→TOKENS). Keep exporting the legacy key in `OptionMap`.
Frontend
- Settings: replace the “display in currency” switch with a Select
(`general_setting.quota_display_type`) offering USD / CNY / Tokens.
Provide fallback mapping from legacy `DisplayInCurrencyEnabled`.
- Persist `quota_display_type` to localStorage (keep `display_in_currency`
for legacy components).
- Rendering helpers: base all quota/price rendering on `quota_display_type`;
use `usd_exchange_rate` for CNY symbol/values.
- Pricing page: default view currency follows site display type (USD/CNY),
while TOKENS mode still allows per-view currency toggling when needed.
Notes
- No database migrations required.
- Legacy clients remain functional via compatibility fields.
2025-09-29 23:23:31 +08:00
Bliod-Cook
3ed146f239
feat: allow admin to restrict the minimum linuxdo trust level to register
2025-08-04 17:19:38 +08:00
wzxjohn
81d474ba3c
feat: add stripe pay api support
2025-07-10 16:29:38 +08:00
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
skynono
221d2b5552
feat: add video channel jimeng
2025-06-27 17:08:20 +08:00
skynono
d7ed0214ad
feat: add video channel kling
2025-06-19 11:53:42 +08:00
creamlike1024
cd8a2f85db
add coze request
2025-05-13 12:52:22 +08:00
han shi
a0017f2235
feat: 增加sendcloud邮件服务器的支持 ( #947 )
...
* 增加sendcloud邮件服务器的支持
* 调整代码结构
* Used slince.Contains function
---------
Co-authored-by: shih <shih@knownsec.com>
2025-04-25 18:17:46 +08:00
Calcium-Ion
b40bf7c812
Merge pull request #953 from wkxu/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: .env文件配置DEBUG=true等参数不起作用的fix
2025-04-10 16:14:11 +08:00
HynoR
4622c17c83
feat: add xai channel
...
feat: add xai channel
feat: add xai channel
2025-04-10 13:04:43 +08:00
wkxu
54c5c3118b
refactor: 把common/instants.go里的从Getenv获取的参数,放到init.go的LoadEnv函数里获取
...
把constant/env.go里的从Getenv获取的参数,放到env.go的InitEnv函数里获取。以避免.env文件配置参数不起作用的情况
2025-04-10 09:02:19 +08:00
1808837298@qq.com
03de7e2ea1
Merge remote-tracking branch 'origin/main'
2025-03-12 17:53:52 +08:00
1808837298@qq.com
1800e0ae9e
feat(relay): Add Xinference channel support
2025-03-12 17:53:46 +08:00
1808837298@qq.com
9f3cc03508
refactor: Migrate OIDC configuration to system settings
2025-03-11 22:00:31 +08:00
wzxjohn
bdb1a2fcb9
feat: add oidc support
2025-03-11 15:52:03 +08:00
1808837298@qq.com
6f9412ead3
feat: Introduce configurable docs link and remove hardcoded chat links
...
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 a new GeneralSetting struct to manage configurable docs link
- Removed hardcoded ChatLink and ChatLink2 variables across multiple files
- Updated frontend components to dynamically render docs link from status
- Simplified chat and link-related logic in various components
- Added a warning modal for quota per unit setting in operation settings
2025-03-09 18:31:16 +08:00
1808837298@qq.com
fd44ac7c0c
feat: Enhance token counting and content parsing for messages
2025-02-24 14:18:15 +08:00
1808837298@qq.com
83e161a1d4
refactor: Simplify root user notification and remove global email variable
...
- Remove global `RootUserEmail` variable
- Modify channel testing and user notification methods to use `GetRootUser()`
- Update user cache and notification service to use more consistent user base type
- Add new channel test notification type
2025-02-18 15:59:17 +08:00
1808837298@qq.com
babbbfb346
feat: Add Baidu Qianfan V2 channel support #725
...
- Update channel constants to include Baidu V2 channel
- Create new Baidu V2 adaptor for relay
- Add Baidu V2 models and channel configuration
- Update relay adaptor to support Baidu V2 channel
- Modify web channel constants to include Baidu V2 option
2025-02-12 00:07:02 +08:00
1808837298@qq.com
4d6bce1ddd
feat: Add support for VolcEngine (Doubao) channel #313 #734
2025-02-11 23:47:15 +08:00
Jerry
8e2059b898
Support for MokaAI M3E
2025-01-22 04:21:08 +08:00
CalciumIon
6e002a5f0f
feat: enhance environment variable handling and security features
2024-12-30 17:24:19 +08:00
CalciumIon
f9cf073a8f
feat: add deepseek channel type
2024-12-05 17:50:08 +08:00
Benny
192fc094fc
fix: 360智能接口地址更新
2024-12-02 15:59:08 +00:00
licoy
af1f0a406d
feat: 增加GLOBAL_API_RATE_LIMIT_ENABLE与GLOBAL_WEB_RATE_LIMIT_ENABLE环境变量,支持是否开启访问速率控制
2024-11-12 20:02:33 +08:00
licoy
6d2a5a7150
feat: 增加GLOBAL_API_RATE_LIMIT_DURATION与GLOBAL_WEB_RATE_LIMIT_DURATION环境变量,支持控制访问速率时间设置
2024-11-12 20:01:43 +08:00
seefs001
12de1faca9
feat: integrate Linux DO OAuth authentication
2024-11-10 23:56:22 +08:00
CalciumIon
91aa48450a
feat: 添加Mistral渠道 ( close #546 )
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
2024-11-05 17:11:33 +08:00
1808837298@qq.com
a50d2e6836
fix: error user role
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
2024-09-24 17:49:57 +08:00
HynoR
b7b5887b0e
Update Cohere Safety Setting
2024-09-02 06:47:49 +07:00
CalciumIon
b8664e71e6
feat: support vertex ai #377
2024-08-27 20:19:51 +08:00
CalciumIon
e12516e93d
feat: support SiliconFlow ( close #437 , close #403 )
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
2024-08-16 18:27:26 +08:00
CalciumIon
fe4665fd99
feat: support cloudflare worker ai
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
2024-07-13 19:55:22 +08:00
CalciumIon
efd18779c2
fix: hunyuan
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
2024-07-08 23:42:16 +08:00
CalciumIon
dbf5e07d96
feat: support jina rerank
2024-07-06 18:42:48 +08:00
CalciumIon
99c285c50f
feat: support dify ( close #299 )
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
2024-07-06 01:32:40 +08:00
CalciumIon
eca52104cc
chore: 重构
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
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
1808837298@qq.com
893dafb89f
feat: 支持设置worker访问请求中的图片地址
2024-05-28 17:59:53 +08:00
CaIon
467b9a43dc
chore: update minimax url
2024-05-18 15:15:20 +08:00
CaIon
3aae4efe8c
feat: support minimax
2024-05-16 19:03:42 +08:00