- 16 Aug, 2025 7 commits
-
-
CaIon committed
-
feats: the flexable params override and compatible format
Calcium-Ion committed -
CaIon committed
-
feat: use proxy HTTP client fetch models
Calcium-Ion committed -
feat(relay): add OpenAI gpt-4.1 o3 o4 gpt-image-1 models
Calcium-Ion committed -
Nekohy committed
-
Nekohy committed
-
- 15 Aug, 2025 28 commits
-
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
wzxjohn committed
-
wzxjohn committed
-
CaIon committed
-
CaIon committed
-
Fix reasoning adaptor for openrouter
Calcium-Ion committed -
CaIon committed
-
CaIon committed
-
CaIon committed
-
CaIon committed
-
fix: prevent OpenRouter cache calculation with custom model ratios
Calcium-Ion committed -
yyhhyyyyyy committed
-
CaIon committed
-
手机客户端下拉菜单采用导航栏的样式
同語 committed -
refactor: Introduce pre-consume quota and unify relay handlers
Calcium-Ion committed -
CaIon committed
-
CaIon committed
-
CaIon committed
-
# Conflicts: # dto/openai_image.go
CaIon committed -
CaIon committed
-
CaIon committed
-
This commit introduces a new function, MaskEmail, to mask user email addresses in logs, preventing PII leakage. Additionally, the RelayInfo logging has been updated to utilize this new masking function, ensuring sensitive information is properly handled. The channel test logic has also been improved to dynamically determine the relay format based on the request path.
CaIon committed -
CaIon committed
-
- 14 Aug, 2025 5 commits
-
-
CaIon committed
-
CaIon committed
-
This commit refactors the logging mechanism across the application by replacing direct logger calls with a centralized logging approach using the `common` package. Key changes include: - Replaced instances of `logger.SysLog` and `logger.FatalLog` with `common.SysLog` and `common.FatalLog` for consistent logging practices. - Updated resource initialization error handling to utilize the new logging structure, enhancing maintainability and readability. - Minor adjustments to improve code clarity and organization throughout various modules. This change aims to streamline logging and improve the overall architecture of the codebase.
CaIon committed -
fatcat-ww committed
-
This commit introduces a major architectural refactoring to improve quota management, centralize logging, and streamline the relay handling logic. Key changes: - **Pre-consume Quota:** Implements a new mechanism to check and reserve user quota *before* making the request to the upstream provider. This ensures more accurate quota deduction and prevents users from exceeding their limits due to concurrent requests. - **Unified Relay Handlers:** Refactors the relay logic to use generic handlers (e.g., `ChatHandler`, `ImageHandler`) instead of provider-specific implementations. This significantly reduces code duplication and simplifies adding new channels. - **Centralized Logger:** A new dedicated `logger` package is introduced, and all system logging calls are migrated to use it, moving this responsibility out of the `common` package. - **Code Reorganization:** DTOs are generalized (e.g., `dalle.go` -> `openai_image.go`) and utility code is moved to more appropriate packages (e.g., `common/http.go` -> `service/http.go`) for better code structure.
CaIon committed
-