1808837298@qq.com
ee302c063c
refactor: Enhance error handling in AWS and Claude response processing by updating function signatures and improving error propagation
2025-03-16 16:47:16 +08:00
1808837298@qq.com
2c81a5f0cc
refactor: Streamline AWS and Claude response handling by consolidating logic and improving error management
2025-03-16 16:07:51 +08:00
Calcium-Ion
b84b6affe9
Merge pull request #874 from HynoR/feat/gemini2
...
Chore: Sync Cohere Latest Model
2025-03-15 19:44:37 +08:00
1808837298@qq.com
c183c1231c
refactor: Replace direct access to ImageUrl with GetImageMedia method across multiple relay channels
2025-03-15 19:43:37 +08:00
1808837298@qq.com
dd393cd0d9
feat: support dify upload image file
2025-03-15 19:10:12 +08:00
TAKO
e98849048c
Sync Cohere Latest Model
2025-03-15 12:12:46 +08:00
1808837298@qq.com
19bfa158cc
refactor: Change ClaudeError field type to non-pointer and enhance response handling with reasoning content
2025-03-14 17:48:26 +08:00
CalciumIon
69e44a03b1
refactor: Simplify OpenAI handler function signature and remove unused TextResponseWithError struct; introduce common_handler for rerank functionality
2025-03-14 17:31:05 +08:00
CalciumIon
9a78db8484
feat: Add HasSentThinkingContent field to ThinkingContentInfo struct
2025-03-14 17:09:40 +08:00
Calcium-Ion
a381163402
Merge pull request #867 from Sh1n3zZ/wrong-think-label-fix
...
fix: wrong thinking labels appear in non-thinking models (#861 )
2025-03-14 16:59:56 +08:00
CalciumIon
1644dbc864
refactor: Update token usage calculation in FormatClaudeResponseInfo #865
2025-03-14 17:00:39 +08:00
Sh1n3zZ
cc1400e939
fix: wrong thinking labels appear in non-thinking models ( #861 )
2025-03-14 03:13:52 +08:00
1808837298@qq.com
6187656aa9
chore: Update GitHub Actions workflows and refactor adaptor logic for Docker image builds
2025-03-13 21:10:39 +08:00
Calcium-Ion
e5b6aa6e85
Merge pull request #857 from asjfoajs/main
...
Refactor: Optimize the ImageHandler under the Alibaba large model to …
2025-03-13 19:51:08 +08:00
1808837298@qq.com
7e46d4217d
feat: 初步兼容流模式下openai渠道类型转为claude格式访问 #862
2025-03-13 19:32:08 +08:00
霍雨佳
23596d22c9
Refactor: Optimize the ImageHandler under the Alibaba large model to retrieve the key from the header.
...
Reason: The info parameter already includes the key, so there is no need to retrieve it again from the header.
Solution: Delete the code for obtaining the key and directly use info.ApiKey.
2025-03-13 08:54:45 +08:00
1808837298@qq.com
2048b451bf
fix panic
2025-03-12 21:35:57 +08:00
1808837298@qq.com
bd48f43410
feat: claude relay
2025-03-12 21:31:46 +08:00
1808837298@qq.com
c0b9350785
fix: claude to openai tools use
2025-03-12 19:46:08 +08:00
1808837298@qq.com
229738cda9
fix: claude to openai tools use
2025-03-12 19:29:15 +08:00
1808837298@qq.com
39d95172e8
fix: claude to openai tools use
2025-03-12 18:53:38 +08:00
1808837298@qq.com
a981e10712
feat(relay): Add Xinference channel support
2025-03-12 17:53:46 +08:00
1808837298@qq.com
1819c4d5f5
feat(error): Enhance error handling with optional detailed error messages
2025-03-11 17:25:06 +08:00
1808837298@qq.com
6f24dddcb2
feat(relay): Add pass-through request option for global settings
2025-03-11 17:02:35 +08:00
Sh1n3zZ
e1b9f164f9
feat: gemini Embeddings support
2025-03-10 23:32:06 +08:00
霍雨佳
434e9d7695
Fix: Under Ali's large model, the task ID result for image retrieval is incorrect.
...
Reason: The URL is incomplete, missing baseurl.
Solution: Add baseurl. url := fmt.Sprintf("%s/api/v1/tasks/%s", info.BaseUrl, taskID).
2025-03-10 16:22:40 +08:00
1808837298@qq.com
68097c132d
feat: Improve decimal precision for quota and payment calculations
...
- Added github.com/shopspring/decimal for precise floating-point calculations
- Refactored quota and payment calculations in multiple files to use decimal arithmetic
- Updated go.mod and go.sum to include decimal library
- Improved precision in topup, relay, and quota service calculations
- Added support for more OpenAI model variants in cache ratio settings
2025-03-08 21:55:50 +08:00
1808837298@qq.com
a9bfcb0daf
feat: Add prompt cache hit tokens support for DeepSeek channel #406
2025-03-08 16:50:53 +08:00
1808837298@qq.com
bb848b2fe0
refactor: Improve quota calculation precision using floating-point arithmetic
2025-03-08 16:44:08 +08:00
1808837298@qq.com
4f194f4e6a
feat: Implement cache token ratio for more precise token pricing
2025-03-08 01:30:50 +08:00
1808837298@qq.com
81137e0533
refactor: Remove redundant user quota retrieval in audio relay
2025-03-07 19:59:00 +08:00
Sh1n3zZ
894dce7366
fix: possible incomplete return of the think field and incorrect occurrences of the reasoning field
2025-03-06 19:20:29 +08:00
Sh1n3zZ
b95142bbac
fix: adapting return format for openrouter think content ( #793 )
2025-03-06 19:16:26 +08:00
1808837298@qq.com
e3f9ef1894
fix: error NotifyRootUser #812
2025-03-06 15:56:42 +08:00
1808837298@qq.com
558e625a01
fix: Prevent resource leaks by adding body close in stream handlers
2025-03-05 19:51:22 +08:00
1808837298@qq.com
37a83ecc33
refactor: Centralize stream handling and helper functions in relay package
2025-03-05 19:47:41 +08:00
1808837298@qq.com
8deab221f9
fix: vertex claude
2025-03-05 16:43:40 +08:00
1808837298@qq.com
cbdf26bf2c
feat: Add context-aware goroutine pool for safer concurrent operations
2025-03-04 18:42:34 +08:00
1808837298@qq.com
eb46b71a71
fix: Ignore EOF errors in OpenAI stream scanner
2025-03-04 17:35:41 +08:00
1808837298@qq.com
b00dd8b405
fix: Handle scanner errors in OpenAI relay stream handler
2025-03-04 17:10:56 +08:00
1808837298@qq.com
b1be64bcf3
fix: vertex claude
2025-03-03 20:06:08 +08:00
1808837298@qq.com
d042a1bd55
refactor: Improve channel testing and model price handling
2025-03-02 15:47:12 +08:00
1808837298@qq.com
7dbb6b017c
feat: Add self-use mode for model ratio and price configuration
...
- Introduce `SelfUseModeEnabled` setting to allow flexible model ratio configuration
- Update error handling to provide more informative messages when model ratios are not set
- Modify pricing and relay logic to support self-use mode
- Add UI toggle for enabling self-use mode in operation settings
- Implement fallback mechanism for model ratios when self-use mode is enabled
2025-03-01 21:13:48 +08:00
1808837298@qq.com
ce1854847b
fix: Enhance error message for missing model ratio configuration
2025-03-01 17:02:31 +08:00
1808837298@qq.com
a5085014cc
fix: Improve model ratio and price management
...
- Update error message for missing model ratio to be more user-friendly
- Modify ModelRatioNotSetEditor to filter models without price or ratio
- Enhance model data initialization with fallback values
2025-02-28 23:28:47 +08:00
1808837298@qq.com
18d3706ff8
feat: Add new model management features
...
- Implement `/api/channel/models_enabled` endpoint to retrieve enabled models
- Add `EnabledListModels` handler in controller
- Create new `ModelRatioNotSetEditor` component for managing unset model ratios
- Update router to include new models_enabled route
- Add internationalization support for new model management UI
- Include GPT-4.5 preview model in OpenAI model list
2025-02-28 21:13:30 +08:00
1808837298@qq.com
152950497e
fix
2025-02-28 20:28:44 +08:00
1808837298@qq.com
d6fd50e382
feat: add new GPT-4.5 preview model ratios
2025-02-28 19:17:15 +08:00
1808837298@qq.com
cfd3f6c073
feat: Enhance Claude default max tokens configuration
...
- Replace ThinkingAdapterMaxTokens with a more flexible DefaultMaxTokens map
- Add support for model-specific default max tokens configuration
- Update relay and web interface to use the new configuration approach
- Implement a fallback mechanism for default max tokens
2025-02-28 17:53:08 +08:00
1808837298@qq.com
45c56b5ded
feat: Implement model-specific headers configuration for Claude
2025-02-28 16:47:31 +08:00