CaIon
77b100ba2b
refactor: update function signatures to include context and improve file handling #1599
2025-08-15 18:40:54 +08:00
CaIon
4c0c9ffd0a
feat: add AWS invoke error handling and new error code
2025-08-09 19:26:41 +08:00
Calcium-Ion
f1faa08c1e
Merge pull request #1508 from wzxjohn/feature/aws_new_apikey_support
...
feat: support aws bedrock apikey
2025-08-06 12:04:28 +08:00
Calcium-Ion
e7c657ef87
Merge pull request #1511 from neotf/feat-05
...
feat: add support for claude-opus-4-1 model and update ratios
2025-08-06 12:03:33 +08:00
neotf
c9bcdc89f0
feat: add support for claude-opus-4-1 model and update ratios
2025-08-06 00:58:46 +08:00
wzxjohn
d31027d5c7
feat: support aws bedrock apikey
2025-08-05 23:01:30 +08:00
creamlike1024
689dbfe71a
feat: convert gemini format to openai chat completions
2025-08-01 22:23:35 +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
daggeryu
0a7842e897
fix aws claude-sonnet-4-20250514
2025-05-24 01:21:14 +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
creamlike1024
8ea4c76f2b
feat: support /v1/responses API
2025-05-02 13:59:46 +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
1808837298@qq.com
9b2cc6add7
feat: Enhance ConvertClaudeRequest method to set request model and handle vertex-specific request conversion
2025-03-17 17:13:33 +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
47c297794d
feat: 初步兼容流模式下openai渠道类型转为claude格式访问 #862
2025-03-13 19:32:08 +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
1808837298@qq.com
894f950e96
fix: vertex claude
2025-03-03 20:06:08 +08:00
1808837298@qq.com
29fc0a6b1d
feat: Implement model-specific headers configuration for Claude
2025-02-28 16:47:31 +08:00
1808837298@qq.com
5371af0b42
feat: Refactor model configuration management with new config system
...
- Introduce a new configuration management approach for model-specific settings
- Update Gemini settings to use the new config system with more flexible management
- Add support for dynamic configuration updates in option handling
- Modify Claude and Vertex adaptors to use new configuration methods
- Enhance web interface to support namespaced configuration keys
2025-02-27 20:49:34 +08:00
1808837298@qq.com
2d77733cd3
fix: Improve AWS Claude adaptor request conversion error handling #796
2025-02-27 14:57:00 +08:00
1808837298@qq.com
6c8016e5f8
feat: Add support for Claude thinking parameter in request
2025-02-25 14:37:03 +08:00
1808837298@qq.com
c62276fcc4
feat: Add Claude 3.7 Sonnet model to AWS channel mapping
2025-02-25 02:55:23 +08:00
kuwork
fdebb6e6e8
Merge branch 'main' into main
2025-02-04 22:52:37 +08:00
Jerry
fcc32ffbc9
Fix M3E not working
2025-01-23 05:54:39 +08:00
Butui Hu
6e710f3210
Fix temperature not being set to 0 due to json omitempty
...
The issue was caused by the `omitempty` tag in the Go struct, which prevented the `temperature` field from being included in the JSON output when it was set to 0.
Signed-off-by: Butui Hu <hot123tea123@gmail.com >
2025-01-21 12:54:09 +08:00
papersnake
b485aae026
feat: add claude-3-5-haiku-20241022
2024-11-27 13:33:37 +08:00
CalciumIon
7ad5a7a15b
fix: aws claude
2024-11-14 15:12:34 +08:00
1808837298@qq.com
9e4133a890
feat: realtime
...
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00
1808837298@qq.com
aebe06d296
feat: aws claude tools
2024-10-24 00:19:08 +08:00
1808837298@qq.com
6e3d8b5572
feat: update claude models
2024-10-24 00:17:23 +08:00
1808837298@qq.com
2edd418a0b
feat: update aws claude
2024-10-09 00:42:36 +08:00
crabkun
d9111d49b8
fix: 修复aws claude渠道panic的问题
2024-07-21 01:27:29 +08:00
CalciumIon
ee0e1c9736
refactor: audio relay
2024-07-16 22:07:10 +08:00
CalciumIon
7b20b4ed3d
fix: azure stream options
2024-07-15 16:05:30 +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
c7ba4a245b
feat: support cohere rerank
2024-07-06 17:09:22 +08:00
CalciumIon
9215e8c94c
feat: first response time support aws
2024-06-27 00:19:58 +08:00
mgrsc
c2826de3a3
add aws claude-3-5-sonnet
2024-06-21 22:19:52 +08:00
1808837298@qq.com
e1b80d60d8
fix: aws claude system
2024-04-29 00:06:25 +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