zdwy5
85ecad90a7
fix: 支持aws 通过全局参数透传或者渠道参数透传来 调用 ( #2423 )
...
* fix: 支持aws 通过全局参数透传或者渠道参数透传来 调用
* fix(aws): replace json.Unmarshal with common.Unmarshal for request body processing
---------
Co-authored-by: r0 <liangchunlei@01.ai >
Co-authored-by: CaIon <i@caion.me >
2025-12-12 17:09:27 +08:00
jason.mei
f928e9d5da
fix(aws): simplify HTTP status code extraction from AWS errors
2025-11-28 18:03:53 +08:00
jason.mei
a925b8ecb9
fix(aws): extract HTTP status code from AWS SDK errors
2025-11-28 17:43:37 +08:00
CaIon
d2c268dd51
feat(aws): Add support for anthropic-beta header in AwsClaudeRequest
2025-11-14 12:01:20 +08:00
iwu
ea6dc0c338
feat: aws client supports proxy settings
...
Signed-off-by: iwu <iwu@tencent.com >
2025-10-27 15:00:20 +08:00
CaIon
6df44134ab
refactor: rename AWS model ID and region prefix functions for clarity
2025-10-16 12:10:55 +08:00
CaIon
59caea8f34
feat: support aws bedrock api-keys-use
2025-10-15 17:29:10 +08:00
CaIon
31e09b960f
refactor: aws
2025-10-15 16:44:33 +08:00
Seefs
5010f2d004
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
huanghejian
b10ed4b424
pref: support amazon nova
2025-09-11 12:17:16 +08:00
huanghejian
f795148c58
feat: support amazon nova
2025-09-10 20:30:00 +08:00
creamlike1024
bbfbce9c67
fix: claude header was not set correctly
2025-09-09 23:18:07 +08:00
CaIon
4c0c9ffd0a
feat: add AWS invoke error handling and new error code
2025-08-09 19:26:41 +08:00
wzxjohn
d31027d5c7
feat: support aws bedrock apikey
2025-08-05 23:01:30 +08:00
CaIon
4a9ca4209a
refactor: Introduce standardized API error
...
This commit refactors the application's error handling mechanism by introducing a new standardized error type, `types.NewAPIError`. It also renames common JSON utility functions for better clarity.
Previously, internal error handling was tightly coupled to the `dto.OpenAIError` format. This change decouples the internal logic from the external API representation.
Key changes:
- A new `types.NewAPIError` struct is introduced to serve as a canonical internal representation for all API errors.
- All relay adapters (OpenAI, Claude, Gemini, etc.) are updated to return `*types.NewAPIError`.
- Controllers now convert the internal `NewAPIError` to the client-facing `OpenAIError` format at the API boundary, ensuring backward compatibility.
- Channel auto-disable/enable logic is updated to use the new standardized error type.
- JSON utility functions are renamed to align with Go's standard library conventions (e.g., `UnmarshalJson` -> `Unmarshal`, `EncodeJson` -> `Marshal`).
2025-07-10 15:02:40 +08:00
1808837298@qq.com
6e17d31e92
feat: Add support for cross-region AWS model handling in awsStreamHandler
2025-03-17 23:41:00 +08:00
Calcium-Ion
eafbfac6a0
Merge pull request #872 from neotf/main
...
feat: support AWS Model CrossRegion
2025-03-17 16:18:11 +08:00
1808837298@qq.com
6e8916207e
refactor: Enhance Claude response handling
2025-03-16 19:11:58 +08:00
1808837298@qq.com
9b6d92601a
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
cc406e4fad
refactor: Streamline AWS and Claude response handling by consolidating logic and improving error management
2025-03-16 16:07:51 +08:00
neotf
ac9bd53098
feat: support AWS Model CrossRegion
2025-03-15 01:42:24 +08:00
1808837298@qq.com
78fc3a191c
feat: claude relay
2025-03-12 21:31:46 +08:00
1808837298@qq.com
6cb9001ff3
fix: claude to openai tools use
2025-03-12 19:29:15 +08:00
1808837298@qq.com
d647214555
refactor: Centralize stream handling and helper functions in relay package
2025-03-05 19:47:41 +08:00
CalciumIon
7ad5a7a15b
fix: aws claude
2024-11-14 15:12:34 +08:00
1808837298@qq.com
6e3d8b5572
feat: update claude models
2024-10-24 00:17:23 +08:00
crabkun
d9111d49b8
fix: 修复aws claude渠道panic的问题
2024-07-21 01:27:29 +08:00
CalciumIon
f2a251025d
feat: 完善stream_options
2024-07-08 02:00:39 +08:00
CalciumIon
b93fd8e349
feat: support aws stream_options
2024-07-08 01:52:40 +08:00
CalciumIon
9215e8c94c
feat: first response time support aws
2024-06-27 00:19:58 +08:00
CaIon
8e3c527640
fix: 规范claude返回格式
2024-04-26 02:56:35 +08:00
CaIon
3721ed796c
feat: support aws claude
2024-04-23 11:44:40 +08:00