CaIon
a9e5d99ea3
refactor: token counter logic
2025-06-21 00:54:40 +08:00
chenjm
b33d808bc1
fix(audio): :bugs: fix webm audio strconv.ParseFloat: parsing "N/A"
2025-06-17 10:04:36 +08:00
chenjm
4559f5b2d3
fix(audio): :bugs: fix webm audio strconv.ParseFloat: parsing "N/A"
2025-06-17 09:21:56 +08:00
a37836323
856465ae59
修复Azure渠道对responses API的兼容性支持 - 为Azure渠道添加对responses API的特殊处理 - 兼容微软新的API格式,使用preview版本的api-version - 修复了Azure渠道无法正确处理responses请求的问题
2025-06-11 22:11:47 +08:00
Akkuman
d608a6f123
feat: streaming response for tts
2025-05-29 10:56:01 +08:00
CaIon
7b176015b8
feat: enhance OpenAI handler to support forced response formatting and add debug logging for request URLs
2025-05-09 18:57:06 +08:00
creamlike1024
0d929800cf
fix: GetRequestURL remove unnecessary case
2025-05-09 18:13:19 +08:00
CaIon
7aa54a2cd7
feat: add AzureNoRemoveDotTime constant and update channel handling #1044
...
- Introduced a new constant `AzureNoRemoveDotTime` in `constant/azure.go` to manage model name formatting for channels created after May 10, 2025.
- Updated `distributor.go` to set `channel_create_time` in the context.
- Modified `adaptor.go` to conditionally remove dots from model names based on the channel creation time.
- Enhanced `relay_info.go` to include `ChannelCreateTime` in the `RelayInfo` struct.
- Updated English localization files to reflect changes in model name handling for new channels.
2025-05-08 23:19:40 +08:00
CaIon
a836e97315
fix: update OpenAI request handling to include 'o1-preview' model support #1029
2025-05-08 23:19:38 +08:00
creamlike1024
459c277c94
feat: 添加 built in tools 计费
...
- 增加非流的工具调用次数统计
- 添加 web search 和 file search 计费
2025-05-06 21:58:01 +08:00
CaIon
18b3300ff1
feat: implement OpenAI responses handling and streaming support with built-in tool tracking
2025-05-05 00:40:16 +08:00
CaIon
419a056fbf
refactor: remove unnecessary call to helper.Done and adjust data rendering in ClaudeChunkData
2025-05-04 17:35:45 +08:00
CaIon
fe3232bf23
feat: enhance OaiResponsesStreamHandler to handle output text and improve response streaming
2025-05-04 17:09:37 +08:00
creamlike1024
1236fa8fe4
add OaiResponsesStreamHandler
2025-05-03 22:36:27 +08:00
creamlike1024
425feb88d8
feat: support /v1/responses API
2025-05-02 13:59:46 +08:00
CaIon
487ef35c58
feat: support image edit model mapping
...
(cherry picked from commit 1a869d8ad77f262ee27675ec2deaf451b1743eb7)
2025-04-26 15:48:59 +08:00
xyfacai
f9f32a0158
feat: support /images/edit
...
(cherry picked from commit 1c0a1238787d490f02dd9269b616580a16604180)
2025-04-26 15:44:56 +08:00
CaIon
ee4f27d01b
refactor: simplify model prefix checks and update message role for o-series models
2025-04-17 16:50:52 +08:00
CaIon
2f3acd9d22
feat: 添加流模式下的SSE保活机制 #945
2025-04-14 19:40:23 +08:00
CaIon
ef8ae4db80
fix: xAI usage
2025-04-11 23:31:32 +08:00
CaIon
90576d0261
feat: enhance Claude to OpenAI request conversion with additional relay info support
2025-04-11 19:13:38 +08:00
CaIon
4b3e30e669
feat: 完善openai转claude支持
2025-04-11 18:28:50 +08:00
1808837298@qq.com
d1c62a583d
feat: support xinference rerank to jina format
2025-03-16 21:06:29 +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
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
Sh1n3zZ
cc1400e939
fix: wrong thinking labels appear in non-thinking models ( #861 )
2025-03-14 03:13:52 +08:00
1808837298@qq.com
7e46d4217d
feat: 初步兼容流模式下openai渠道类型转为claude格式访问 #862
2025-03-13 19:32:08 +08:00
1808837298@qq.com
bd48f43410
feat: claude relay
2025-03-12 21:31:46 +08:00
1808837298@qq.com
a981e10712
feat(relay): Add Xinference channel support
2025-03-12 17:53:46 +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
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
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
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
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
287caf8e38
feat: Add Jina reranking support for OpenAI adaptor
2025-02-26 21:46:06 +08:00
1808837298@qq.com
115a181db3
feat: Add thinking-to-content conversion for stream responses
2025-02-23 17:05:57 +08:00
1808837298@qq.com
88a2fec190
fix: mistral
2025-02-22 16:29:48 +08:00
1808837298@qq.com
6e7587ab46
feat: Add reasoning content support in OpenAI response handling
2025-02-21 18:52:51 +08:00
1808837298@qq.com
812c188ab1
fix: Extend temperature handling for OpenAI-like models
...
- Add support for suppressing temperature for o1 models
- Expand model prefix check to include 'o1' alongside 'o3' models
2025-02-18 16:00:56 +08:00
1808837298@qq.com
6bf99f218c
feat: Enhance VolcEngine channel support with bot model routing ( fix #757 )
2025-02-15 00:10:58 +08:00
1808837298@qq.com
bd4ce9cd91
fix: Improve OpenAI stream data parsing and handling
2025-02-14 23:52:25 +08:00
1808837298@qq.com
f5e3063f33
feat: Improve embedding request handling and support across channels
...
- Update EmbeddingRequest DTO to support more flexible input types
- Add input parsing method to handle various input formats
- Implement ConvertEmbeddingRequest for multiple channel adaptors
- Remove relayMode parameter from EmbeddingHelper
- Add input validation for embedding requests
- Simplify embedding request conversion for different channels
2025-02-12 14:39:36 +08:00
kuwork
89d48a6618
Merge branch 'main' into main
2025-02-04 22:52:37 +08:00
1808837298@qq.com
187c336121
feat: add Azure default API version configuration
...
- Introduce `AZURE_DEFAULT_API_VERSION` environment variable
- Set default Azure API version to `2024-12-01-preview`
- Update README documentation for new environment configuration
- Modify Azure channel relay to use default API version when not specified
2025-02-03 22:38:23 +08:00
1808837298@qq.com
c68ea5654f
feat: enhance model name handling and logging
...
- Add `RecodeModelName` to `RelayInfo` struct for more flexible model name tracking
- Update text relay and quota consumption to use `RecodeModelName`
- Move reasoning effort from admin info to other info in log generation
- Ensure consistent model name handling across relay components
2025-02-03 15:06:46 +08:00