CaIon
7afd3f97ee
fix: remove unnecessary error handling in token counting functions
2025-06-21 01:16:54 +08:00
CaIon
a9e5d99ea3
refactor: token counter logic
2025-06-21 00:54:40 +08:00
CaIon
b7c3328d43
feat(channel): enhance Claude response handling with new Done flag and improved usage tracking
2025-06-17 20:08:25 +08:00
CaIon
b77574dad5
🔧 refactor(dto): update BudgetTokens handling in Thinking struct
2025-06-16 18:29:49 +08:00
Xyfacai
b778cd2b23
refactor: message content 改成 any
...
refactor: message content 改成 any
2025-06-07 23:47:22 +08:00
CaIon
25ae077ac9
refactor: update claude media source handling
2025-04-24 15:59:43 +08:00
CaIon
aaa41a8074
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
214ca4db56
fix: claude parallel function calling
2025-04-15 04:52:33 +08:00
CaIon
99efc1fbb6
fix: try to fix claude to openai format mcp #966
2025-04-15 01:16:06 +08:00
Seefs
20c043f584
fix: claude function calling type
2025-03-19 22:48:49 +08:00
1808837298@qq.com
8c7c39550c
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
53b3599827
refactor: Enhance Claude response handling
2025-03-16 19:11:58 +08:00
1808837298@qq.com
b3b1c803fc
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
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
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
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
1644dbc864
refactor: Update token usage calculation in FormatClaudeResponseInfo #865
2025-03-14 17:00:39 +08:00
1808837298@qq.com
7e46d4217d
feat: 初步兼容流模式下openai渠道类型转为claude格式访问 #862
2025-03-13 19:32:08 +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
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
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
d0bc8d17d1
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
929668bead
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
13ab0f8e4f
fix: gemini&claude tool call format #795 #766
2025-02-26 23:56:10 +08:00
1808837298@qq.com
f451268830
feat: Update Claude relay temperature setting
2025-02-25 22:01:05 +08:00
1808837298@qq.com
da4d1861fe
fix: Adjust Claude thinking mode request parameters
2025-02-25 16:52:45 +08:00
MartialBE
4f212be45c
feat: Add Claude 3.7 Sonnet thinking mode support
2025-02-25 14:10:43 +08:00
CalciumIon
2b38e8ed8d
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
CalciumIon
0c326556aa
refactor: Update OpenAI request and message handling
...
- Changed the type of ToolCalls in the Message struct from `any` to `json.RawMessage` for better type safety and clarity.
- Introduced ParseToolCalls and SetToolCalls methods to handle ToolCalls more effectively, improving code readability and maintainability.
- Updated the ParseContent method to work with the new MediaContent type instead of MediaMessage, enhancing the structure of content parsing.
- Refactored Gemini relay functions to utilize the new ToolCalls handling methods, streamlining the integration with OpenAI and Gemini systems.
2024-12-22 16:20:30 +08:00
1808837298@qq.com
74f9006b40
feat: realtime
...
(cherry picked from commit d4966246e68dbdcdab45ec5c5141362834d74425)
2024-11-05 19:27:47 +08:00
Yan Tau
b5bb708072
Merge branch 'Calcium-Ion:main' into main
2024-09-11 19:29:50 +08:00
CalciumIon
2650ec9b59
feat: claude response return model name
2024-09-11 19:12:55 +08:00
Yan
0ada2371b6
fix: tool use in claude
2024-09-05 00:53:00 +08:00
CalciumIon
ac4262c542
feat: support vertex ai #377
2024-08-27 20:19:51 +08:00
CalciumIon
a8ac8a25d5
feat: format claude messages when first role is not user
2024-08-24 17:15:55 +08:00
CalciumIon
6cb0eb4b39
feat: update claude tools calling
2024-08-13 17:54:24 +08:00
CalciumIon
e84300f4ae
chore: gopool
2024-07-19 01:07:37 +08:00
CalciumIon
11fd993574
feat: support claude tool calling
2024-07-18 00:36:05 +08:00
CalciumIon
c88f3741e6
feat: support claude stop_sequences
2024-07-11 18:44:45 +08:00
CalciumIon
df6502733c
feat: 完善stream_options
2024-07-08 02:00:39 +08:00
CalciumIon
9896ba0a64
feat: support aws stream_options
2024-07-08 01:52:40 +08:00
CalciumIon
e8b93ed6ec
feat: support claude stream_options
2024-07-08 01:45:43 +08:00
CalciumIon
402a415c79
feat: 支持设置流模式超时时间(gemini, claude)
2024-06-27 17:24:48 +08:00