Calcium-Ion
877529ef6b
Merge pull request #1120 from neotf/feat-04
...
feat: enhance token usage details for upstream OpenRouter
2025-06-22 01:10:49 +08:00
CaIon
16997a695d
refactor: token counter logic
2025-06-21 00:54:40 +08:00
neotf
685a65c722
format
2025-06-18 19:54:20 +08:00
neotf
ecacff87ad
Update relay/channel/openai/adaptor.go
...
use review's suggestion
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-06-18 15:29:19 +08:00
neotf
c787f59822
Merge branch 'main' into feat-04
2025-06-18 15:20:24 +08:00
chenjm
ab5dfd8d97
fix(audio): :bugs: fix webm audio strconv.ParseFloat: parsing "N/A"
2025-06-17 10:04:36 +08:00
chenjm
99dacb1d4b
fix(audio): :bugs: fix webm audio strconv.ParseFloat: parsing "N/A"
2025-06-17 09:21:56 +08:00
a37836323
a126015940
修复Azure渠道对responses API的兼容性支持 - 为Azure渠道添加对responses API的特殊处理 - 兼容微软新的API格式,使用preview版本的api-version - 修复了Azure渠道无法正确处理responses请求的问题
2025-06-11 22:11:47 +08:00
neotf
1ce5c34703
Merge branch 'main' into feat-04
2025-06-05 20:35:47 +08:00
Akkuman
2e5943c1d4
feat: streaming response for tts
2025-05-29 10:56:01 +08:00
neotf
c0df38767c
feat: enhance token usage details for upstream OpenRouter
2025-05-29 00:55:57 +08:00
CaIon
c2f3749cfe
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
92ddbc4dfd
fix: GetRequestURL remove unnecessary case
2025-05-09 18:13:19 +08:00
CaIon
66cda24386
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
abc9d60fdc
fix: update OpenAI request handling to include 'o1-preview' model support #1029
2025-05-08 23:19:38 +08:00
creamlike1024
a3fe88772f
feat: 添加 built in tools 计费
...
- 增加非流的工具调用次数统计
- 添加 web search 和 file search 计费
2025-05-06 21:58:01 +08:00
CaIon
e9812b0fd5
feat: implement OpenAI responses handling and streaming support with built-in tool tracking
2025-05-05 00:40:16 +08:00
CaIon
24200df47e
refactor: remove unnecessary call to helper.Done and adjust data rendering in ClaudeChunkData
2025-05-04 17:35:45 +08:00
CaIon
209265e68c
feat: enhance OaiResponsesStreamHandler to handle output text and improve response streaming
2025-05-04 17:09:37 +08:00
creamlike1024
3753e5720a
add OaiResponsesStreamHandler
2025-05-03 22:36:27 +08:00
creamlike1024
8ea4c76f2b
feat: support /v1/responses API
2025-05-02 13:59:46 +08:00
CaIon
0647872c15
feat: support image edit model mapping
...
(cherry picked from commit 1a869d8ad77f262ee27675ec2deaf451b1743eb7)
2025-04-26 15:48:59 +08:00
xyfacai
873ebcf0c7
feat: support /images/edit
...
(cherry picked from commit 1c0a1238787d490f02dd9269b616580a16604180)
2025-04-26 15:44:56 +08:00
CaIon
b364e9e3b1
refactor: simplify model prefix checks and update message role for o-series models
2025-04-17 16:50:52 +08:00
CaIon
e3b262da1d
feat: 添加流模式下的SSE保活机制 #945
2025-04-14 19:40:23 +08:00
CaIon
f970a03986
fix: xAI usage
2025-04-11 23:31:32 +08:00
CaIon
74d9bb1a12
feat: enhance Claude to OpenAI request conversion with additional relay info support
2025-04-11 19:13:38 +08:00
CaIon
9e4506ebaf
feat: 完善openai转claude支持
2025-04-11 18:28:50 +08:00
1808837298@qq.com
8918381c96
feat: support xinference rerank to jina format
2025-03-16 21:06:29 +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
CalciumIon
5021000c5d
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
7513065760
fix: wrong thinking labels appear in non-thinking models ( #861 )
2025-03-14 03:13:52 +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
1800e0ae9e
feat(relay): Add Xinference channel support
2025-03-12 17:53:46 +08:00
1808837298@qq.com
a36d6de8d1
feat: Add prompt cache hit tokens support for DeepSeek channel #406
2025-03-08 16:50:53 +08:00
Sh1n3zZ
c1ed9d552e
fix: possible incomplete return of the think field and incorrect occurrences of the reasoning field
2025-03-06 19:20:29 +08:00
Sh1n3zZ
aa6c894f56
fix: adapting return format for openrouter think content ( #793 )
2025-03-06 19:16:26 +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
efc7c4d7f9
feat: Add context-aware goroutine pool for safer concurrent operations
2025-03-04 18:42:34 +08:00
1808837298@qq.com
67e17dcdbd
fix: Ignore EOF errors in OpenAI stream scanner
2025-03-04 17:35:41 +08:00
1808837298@qq.com
b0ee0f1501
fix: Handle scanner errors in OpenAI relay stream handler
2025-03-04 17:10:56 +08:00
1808837298@qq.com
0aa30ed3f6
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
c3b0e57ea4
feat: Add Jina reranking support for OpenAI adaptor
2025-02-26 21:46:06 +08:00
1808837298@qq.com
4597816a14
feat: Add thinking-to-content conversion for stream responses
2025-02-23 17:05:57 +08:00
1808837298@qq.com
991b6f8bb0
fix: mistral
2025-02-22 16:29:48 +08:00
1808837298@qq.com
8101cd3ce3
feat: Add reasoning content support in OpenAI response handling
2025-02-21 18:52:51 +08:00
1808837298@qq.com
af9d03140c
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