CaIon
e2c34bdeb9
🐛 fix: refactor JSON unmarshalling across multiple handlers to use UnmarshalJson and UnmarshalJsonStr for consistency
...
This update replaces instances of DecodeJson and DecodeJsonStr with UnmarshalJson and UnmarshalJsonStr in various relay handlers, enhancing code consistency and clarity in JSON processing. The changes improve maintainability and align with recent refactoring efforts in the codebase.
2025-06-28 00:02:07 +08:00
CaIon
d084083e05
fix: update JSON decoding and budget token handling in RequestOpenAI2ClaudeMessage
2025-06-22 01:15:01 +08:00
Calcium-Ion
2dee2300eb
Merge pull request #1235 from prnake/thinking-fix-0616
...
feat: openrouter format for claude request
2025-06-22 01:08:01 +08:00
CaIon
3164e86278
fix: remove unnecessary error handling in token counting functions
2025-06-21 01:16:54 +08:00
CaIon
16997a695d
refactor: token counter logic
2025-06-21 00:54:40 +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
c4e652461e
🔧 refactor(dto): update BudgetTokens handling in Thinking struct
2025-06-16 18:29:49 +08:00
Papersnake
d8790963ae
feat: openrouter format for claude request
2025-06-16 17:43:39 +08:00
Xyfacai
8343fe0740
refactor: message content 改成 any
...
refactor: message content 改成 any
2025-06-07 23:47:22 +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
94455e34e6
fix: update Init method to correctly set RequestMode based on upstream model name prefixes
2025-05-23 01:34:53 +08:00
creamlike1024
8ea4c76f2b
feat: support /v1/responses API
2025-05-02 13:59:46 +08:00
CaIon
c1a0ca0bc7
refactor: update claude media source handling
2025-04-24 15:59:43 +08:00
CaIon
3169bfe362
refactor: update ClaudeMessageSource struct to include optional Url field and adjust media source handling in relay-claude #993
2025-04-24 00:39:09 +08:00
CaIon
115c85390f
fix: claude parallel function calling
2025-04-15 04:52:33 +08:00
CaIon
44a14ced01
fix: try to fix claude to openai format mcp #966
2025-04-15 01:16:06 +08:00
Seefs
f501a3e92e
fix: claude function calling type
2025-03-19 22:48:49 +08:00
1808837298@qq.com
9b85cb2371
refactor: Update ClaudeResponse error handling to use pointer for ClaudeError and improve nil checks in response processing
2025-03-16 23:14:45 +08:00
1808837298@qq.com
6e8916207e
refactor: Enhance Claude response handling
2025-03-16 19:11:58 +08:00
1808837298@qq.com
62dc82638d
feat: Introduce JSON decoding utility functions and update error handling in Claude and OpenAI response structures
2025-03-16 18:34:39 +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
1808837298@qq.com
921ad4530e
refactor: Replace direct access to ImageUrl with GetImageMedia method across multiple relay channels
2025-03-15 19:43:37 +08:00
1808837298@qq.com
b93827c425
feat: support dify upload image file
2025-03-15 19:10:12 +08:00
1808837298@qq.com
b869cec78b
refactor: Change ClaudeError field type to non-pointer and enhance response handling with reasoning content
2025-03-14 17:48:26 +08:00
CalciumIon
15c5fbd3c8
refactor: Update token usage calculation in FormatClaudeResponseInfo #865
2025-03-14 17:00:39 +08:00
1808837298@qq.com
47c297794d
feat: 初步兼容流模式下openai渠道类型转为claude格式访问 #862
2025-03-13 19:32:08 +08:00
1808837298@qq.com
cbc4b3a9e7
fix panic
2025-03-12 21:35:57 +08:00
1808837298@qq.com
78fc3a191c
feat: claude relay
2025-03-12 21:31:46 +08:00
1808837298@qq.com
8f2412fb79
fix: claude to openai tools use
2025-03-12 19:46:08 +08:00
1808837298@qq.com
6cb9001ff3
fix: claude to openai tools use
2025-03-12 19:29:15 +08:00
1808837298@qq.com
d9a6a2db87
fix: claude to openai tools use
2025-03-12 18:53:38 +08:00
1808837298@qq.com
c4ca4af8ce
fix: Prevent resource leaks by adding body close in stream handlers
2025-03-05 19:51:22 +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
86a88f8203
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
29fc0a6b1d
feat: Implement model-specific headers configuration for Claude
2025-02-28 16:47:31 +08:00
1808837298@qq.com
96e73ad8e0
feat: Enhance Claude MaxTokens configuration handling
...
- Update Claude relay to set default MaxTokens dynamically
- Modify web interface to clarify default MaxTokens input purpose
- Improve token configuration logic for thinking adapter models
2025-02-27 22:10:29 +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
0646fa1892
fix: gemini&claude tool call format #795 #766
2025-02-26 23:56:10 +08:00
1808837298@qq.com
5ba44f5ad5
feat: Update Claude relay temperature setting
2025-02-25 22:01:05 +08:00
1808837298@qq.com
583678d9ff
fix: Adjust Claude thinking mode request parameters
2025-02-25 16:52:45 +08:00
1808837298@qq.com
d4706d6b8e
Merge branch 'main' into thinking
...
# Conflicts:
# relay/channel/claude/dto.go
2025-02-25 15:21:22 +08:00
1808837298@qq.com
6c8016e5f8
feat: Add support for Claude thinking parameter in request
2025-02-25 14:37:03 +08:00
MartialBE
7160012fe2
feat: Add Claude 3.7 Sonnet thinking mode support
2025-02-25 14:10:43 +08:00
1808837298@qq.com
15a3b44689
feat: Add support for Claude 3.7 Sonnet model
2025-02-25 02:51:31 +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
CalciumIon
e326679b72
feat: add multi-file type support for Gemini and Claude
...
- Add file data DTO for structured file handling
- Implement file decoder service
- Update Claude and Gemini relay channels to handle various file types
- Reorganize worker service to cf_worker for clarity
- Update token counter and image service for new file types
2024-12-29 00:00:24 +08:00