CaIon
3164e86278
fix: remove unnecessary error handling in token counting functions
2025-06-21 01:16:54 +08:00
CaIon
2c0fd2915b
fix: improve usage calculation in GeminiTextGenerationStreamHandler
2025-06-21 01:08:15 +08:00
CaIon
16997a695d
refactor: token counter logic
2025-06-21 00:54:40 +08:00
CaIon
8ceaaf7819
fix: update response handling in GeminiTextGenerationStreamHandler
...
- Changed response handling from ObjectData to StringData for improved data processing.
- Ensured proper error logging in case of response handling failure.
2025-06-20 21:55:28 +08:00
CaIon
11c3bff1e2
fix: update payment method handling in topup controller
...
- Refactored payment method validation to check against available methods.
- Changed payment method types from "zfb" to "alipay" and "wx" to "wxpay" for consistency.
- Updated the purchase request to use the validated payment method directly.
2025-06-20 17:48:55 +08:00
CaIon
13277cf838
feat: implement new handlers for audio, image, embedding, and responses processing
...
- Added new handlers: AudioHelper, ImageHelper, EmbeddingHelper, and ResponsesHelper to manage respective requests.
- Updated ModelMappedHelper to accept request parameters for better model mapping.
- Enhanced error handling and validation across new handlers to ensure robust request processing.
- Introduced support for new relay formats in relay_info and updated relevant functions accordingly.
2025-06-20 16:02:23 +08:00
CaIon
da067b7f90
refactor: update error handling in ClaudeHelper and GeminiHelper
2025-06-20 14:53:27 +08:00
CaIon
2b2e0a4777
feat: enhance error handling in GeminiHelper and streamline response processing
...
- Added status code mapping handling in GeminiHelper to reset status codes based on response.
- Removed redundant candidate check in GeminiTextGenerationHandler to simplify response processing.
2025-06-20 01:42:19 +08:00
CaIon
2aae048295
Merge remote-tracking branch 'origin/alpha' into alpha
2025-06-20 01:07:52 +08:00
CaIon
f9a72212e6
Merge branch 'main' into alpha
2025-06-20 01:07:44 +08:00
CaIon
94a1aeb5c7
feat: add data presence check before batch update in utils
2025-06-19 19:34:57 +08:00
CaIon
2cd9fd4c45
refactor: streamline JSON response structure in channel API endpoints
2025-06-19 19:03:35 +08:00
CaIon
05aaf63337
Merge branch 'alpha'
2025-06-19 16:17:56 +08:00
CaIon
e685279207
fix: ratio render
2025-06-19 15:36:06 +08:00
CaIon
fd943659c0
Merge remote-tracking branch 'origin/alpha' into alpha
2025-06-19 14:36:55 +08:00
CaIon
bf30adcde0
Merge branch 'main' into alpha
2025-06-19 14:36:17 +08:00
CaIon
8d05e44f61
Merge remote-tracking branch 'origin/alpha' into alpha
2025-06-18 20:51:06 +08:00
CaIon
17f3832487
feat(relay): add debug logging for Gemini request body and introduce flexible speech configuration
2025-06-18 20:50:13 +08:00
CaIon
36a0d4d7ae
fix(relay): ensure consistent setting of web search context size in TextHelper function
2025-06-18 00:37:22 +08:00
CaIon
d4e20df7a6
fix(relay): refine error message for unsupported MIME types and enhance error handling in OpenAI wrapper
2025-06-17 22:44:57 +08:00
CaIon
8d0b54bf6e
fix(relay): improve error handling for unsupported MIME types by sanitizing URLs
2025-06-17 22:40:41 +08:00
CaIon
5506e4feed
feat(file_decoder): expand MIME type detection to include additional file extensions
2025-06-17 22:20:19 +08:00
CaIon
16bffe05d4
feat(file_decoder): add debug logging for MIME type detection when handling application/octet-stream
2025-06-17 22:18:51 +08:00
CaIon
680ff8e8eb
feat(file_decoder): enhance MIME type detection based on URL and Content-Disposition header
2025-06-17 21:49:13 +08:00
CaIon
4ec7012974
✨ feat: enhance group ratio handling in pricing calculations
2025-06-17 21:05:35 +08:00
CaIon
26c6087d80
✨ feat(GroupRatioSettings): enhance JSON validation for group ratios
2025-06-17 21:05:24 +08:00
CaIon
4238068c65
feat(channel): enhance Claude response handling with new Done flag and improved usage tracking
2025-06-17 20:08:25 +08:00
CaIon
822ed681de
feat(channel): add handling for pre_consume_token_quota_failed error type
2025-06-17 16:46:52 +08:00
CaIon
2a1ed60738
Merge branch 'alpha'
2025-06-17 14:49:13 +08:00
CaIon
28a0eb2a6d
Merge remote-tracking branch 'origin/alpha' into alpha
2025-06-17 00:09:38 +08:00
CaIon
af103dcc7f
🧹 chore(relay): remove unused import in relay-palm.go
2025-06-17 00:09:26 +08:00
CaIon
288f279379
🔧 refactor(relay): replace UUID generation with helper function for response IDs
2025-06-16 21:02:27 +08:00
CaIon
c4e652461e
🔧 refactor(dto): update BudgetTokens handling in Thinking struct
2025-06-16 18:29:49 +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
49cb5f3fa3
🐛 fix(log): optimize channel ID collection by using a map to prevent duplicates
2025-06-14 18:23:25 +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
d26ae9aa77
✨ feat(dto): add VlHighResolutionImages parameter to GeneralOpenAIRequest
2025-06-13 17:29:26 +08:00
CaIon
0e97441843
🔧 refactor(LogsTable, render): remove undefined parameters for improved clarity and consistency in function signatures
2025-06-13 01:25:26 +08:00
CaIon
1358a36028
✨ feat(render): introduce getEffectiveRatio helper for improved group ratio handling
2025-06-13 01:16:16 +08:00
CaIon
fa7d18ab7f
🔒 feat(setting): add mutex for GroupGroupRatio to ensure thread safety
2025-06-13 01:08:38 +08:00
CaIon
d62769376b
Merge remote-tracking branch 'origin/alpha' into alpha
2025-06-11 00:18:26 +08:00
CaIon
5511ba3670
🔧 fix(stream_scanner): improve resource management and error handling in StreamScannerHandler
2025-06-11 00:18:16 +08:00
CaIon
ad4d3efd2e
✨ feat(middleware): add HTTP statistics middleware
2025-06-10 19:29:32 +08:00
CaIon
7dc7805c6a
🔧 fix(token_counter): enhance token encoder caching and concurrency handling
2025-06-10 18:55:21 +08:00
CaIon
1abd77c17c
🔧 fix(token_counter): refactor token encoder initialization and retrieval logic
2025-06-10 18:51:26 +08:00
CaIon
88a801af2d
🔧 fix(token_counter): update token encoder implementation and dependencies
2025-06-10 18:04:49 +08:00
CaIon
b23416bbb4
🔧 fix(channel-test): ensure proper state reset to prevent deadlocks
2025-06-10 03:54:18 +08:00
CaIon
92de4d0d04
🔧 fix(api_request): enhance ping keep-alive mechanism with error handling and timeout controls
2025-06-10 03:42:23 +08:00
CaIon
b21e378fee
✨ feat(ChannelsTable): add renderQuotaWithAmount function and clean up imports
2025-06-09 20:50:37 +08:00
CaIon
78b0a82cb8
Merge remote-tracking branch 'origin/alpha' into alpha
2025-06-09 19:24:45 +08:00
CaIon
158c18fe22
✨ feat: add dark mode detection and styling enhancements to PersonalSetting and TopUp components
2025-06-09 19:24:21 +08:00
CaIon
a5baba6b9f
💄 style(LogsTable): remove prefix icons from tags for cleaner UI
2025-06-09 19:00:28 +08:00
CaIon
1de4af1c74
fix(main.go): correct comment formatting for embed directives
2025-06-08 20:26:14 +08:00
CaIon
2fb222b9a4
refactor(dto): change function and encoding fields to use json.RawMessage for improved flexibility
2025-06-08 16:28:47 +08:00
CaIon
2b3e64e8b6
fix(relay-channel): correct condition for mediaMessages initialization in requestOpenAI2Mistral function
2025-06-08 16:25:00 +08:00
CaIon
fcb9647aeb
fix(relay-gemini): remove outdated unsupported models from CovertGemini2OpenAI function
2025-06-08 16:22:39 +08:00
CaIon
7469446a20
fix(relay-gemini): add unsupported models to CovertGemini2OpenAI function
2025-06-08 16:04:31 +08:00
CaIon
e1039c67f7
chore: update CI workflows
2025-06-08 03:37:17 +08:00
CaIon
594636bace
fix: update import statement for vite-plugin-semi to use default import
2025-06-08 03:35:04 +08:00
CaIon
e647163969
chore: update CI workflow to use latest Bun version and adjust build environment variables
2025-06-08 03:28:36 +08:00
CaIon
c3a205e792
chore: update Bun version in CI workflow to 1.2.8
2025-06-08 02:57:44 +08:00
CaIon
e7289297e2
chore: update package.json to replace sse dependency and add trustedDependencies
2025-06-08 02:56:09 +08:00
CaIon
2e04d28483
chore: update CI workflows to use Bun for package management across all platforms
2025-06-08 02:45:18 +08:00
CaIon
4069b3f789
chore: update CI workflows to support manual triggers and rename Docker image workflow
2025-06-08 02:42:27 +08:00
CaIon
2cb067f485
chore: remove deprecated Docker image workflow for amd64
2025-06-08 02:39:53 +08:00
CaIon
550c068994
Merge branch 'alpha'
2025-06-08 02:38:49 +08:00
CaIon
8b55c9b917
Merge remote-tracking branch 'origin/alpha' into alpha
2025-06-08 02:34:22 +08:00
CaIon
e09931558e
chore: update CI workflows to use Bun for package management and build process
2025-06-08 02:34:06 +08:00
CaIon
28a2387dff
Merge remote-tracking branch 'origin/alpha' into alpha
2025-06-08 00:11:28 +08:00
CaIon
5ace100f63
chore: update bun.lockb file
2025-06-08 00:10:54 +08:00
CaIon
e7ebfd498d
fix: CI
2025-06-08 00:06:53 +08:00
CaIon
21613f8f73
Merge remote-tracking branch 'origin/main' into alpha
2025-06-04 01:25:09 +08:00
CaIon
eaaee594ef
chore: add Docker Buildx setup to workflow
...
- Integrated Docker Buildx setup step in docker-image-alpha.yml to enhance multi-platform build capabilities.
2025-06-04 01:16:42 +08:00
CaIon
c8ab726655
chore: update docker image workflows
...
- Added support for multiple platforms (linux/amd64, linux/arm64) in docker-image-alpha.yml.
- Removed outdated docker-image-amd64.yml and docker-image-arm64.yml workflows.
- Deleted linux-release.yml, macos-release.yml, and windows-release.yml as part of workflow cleanup.
2025-06-04 01:12:49 +08:00
CaIon
46f95fddcd
feat: add ToMap method and enhance OpenAI request handling
2025-06-01 01:10:10 +08:00
CaIon
bb8923e76a
Merge remote-tracking branch 'origin/ui/refactor' into ui/refactor
2025-05-29 15:52:16 +08:00
CaIon
8f6b0ede99
refactor: Update TopUp component to utilize StatusContext for dynamic top-up settings
2025-05-29 15:52:11 +08:00
CaIon
cdf7c35df2
style: Add styles for semi-table components to improve layout and presentation
2025-05-29 03:35:18 +08:00
CaIon
ef21119a29
fix: Change ParallelTooCalls from bool to *bool in GeneralOpenAIRequest for optional handling
2025-05-28 21:12:55 +08:00
CaIon
a536e9ca78
feat: Enhance image request validation in relay-image.go: set default model and size, improve error handling for size format, and ensure prompt and N parameters are validated correctly.
2025-05-28 20:18:37 +08:00
CaIon
bdf2f18bdc
🎨 style(ModelPricing): Update card shadow and add margin for improved layout
2025-05-26 19:41:21 +08:00
CaIon
e1fbf73afc
fix: improve input validation and error handling in ModelSetting and SettingGeminiModel components
2025-05-24 15:26:55 +08:00
CaIon
eea5967e2c
feat: add support for new regions in Claude Sonnet 4 and Claude Opus 4 models in AWS constants
2025-05-23 21:11:00 +08:00
CaIon
3cc1a79449
feat: add new model entries for Claude Sonnet 4 and Claude Opus 4 across multiple components, including constants and cache settings
2025-05-23 15:20:16 +08:00
CaIon
4978d63f46
feat: add new model ratios for Claude Sonnet 4 and Claude Opus 4; update ratio retrieval logic for improved handling of model names
2025-05-23 02:02:21 +08:00
CaIon
94455e34e6
fix: update Init method to correctly set RequestMode based on upstream model name prefixes
2025-05-23 01:34:53 +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
fa48d43f0f
feat: implement search functionality in ChannelsTable for improved channel filtering
2025-05-22 16:54:55 +08:00
CaIon
6436a165af
feat: enhance Gemini response handling by adding reasoning content and updating JSON decoding method
2025-05-22 16:11:50 +08:00
CaIon
526b7e6048
feat: add Thought field to GeminiPart and update response handling in streamResponseGeminiChat2OpenAI
2025-05-22 15:52:23 +08:00
CaIon
e0fc7a501f
feat: add OutputFormat field to ImageRequest for enhanced image processing options
2025-05-20 19:40:29 +08:00
CaIon
83ea1b2f64
✨ feat: Add country flag icons package to project dependencies
2025-05-20 02:19:05 +08:00
CaIon
0bf328939a
refactor: update JSON field names in GeminiChatRequest for consistency
2025-05-19 20:26:30 +08:00
CaIon
c0d85e2d98
feat: enhance image decoding logic to handle base64 file types and improve error handling
2025-05-15 14:51:33 +08:00
CaIon
f88b7cd7f2
fix: update model selection logic for image edits in distributor middleware
2025-05-14 17:01:50 +08:00
CaIon
5ca8f13ab0
feat: add moderation and background fields to ImageRequest struct in dalle.go #1052
2025-05-10 15:52:41 +08:00
CaIon
c2f3749cfe
feat: enhance OpenAI handler to support forced response formatting and add debug logging for request URLs
2025-05-09 18:57:06 +08:00
CaIon and creamlike1024
66cda24386
feat: add AzureNoRemoveDotTime constant and update channel handling #1044
...
- Introduced a new constant `AzureNoRemoveDotTime` in `constant/azure.go` to manage model name formatting for channels created after May 10, 2025.
- Updated `distributor.go` to set `channel_create_time` in the context.
- Modified `adaptor.go` to conditionally remove dots from model names based on the channel creation time.
- Enhanced `relay_info.go` to include `ChannelCreateTime` in the `RelayInfo` struct.
- Updated English localization files to reflect changes in model name handling for new channels.
2025-05-08 23:19:40 +08:00
CaIon and creamlike1024
abc9d60fdc
fix: update OpenAI request handling to include 'o1-preview' model support #1029
2025-05-08 23:19:38 +08:00