Commit Graph

445 Commits

Author SHA1 Message Date
RedwindA
546d0140d3 🐛 fix(mistral): validate and generate new IDs for tool calls and tool call IDs; Correctly handle null content for assistant messages with tool_calls. 2025-06-08 00:06:56 +08:00
creamlike1024
0e9a193ed8 feat: gemini audio input billing 2025-06-07 12:26:23 +08:00
RedwindA
eb23dffa04 修复2.5-pro的预算范围 2025-06-06 01:58:02 +08:00
RedwindA
8add0b1592 解决合并冲突 2025-06-06 01:29:06 +08:00
RedwindA
2c3464c2c6 清理注释 2025-06-06 01:09:51 +08:00
RedwindA
f24e2b0d40 Fix: Correctly relay FunctionResponse content for Gemini API 2025-06-06 00:56:38 +08:00
Apple\Apple
b72e641d22 Merge remote-tracking branch 'origin/main' into alpha 2025-06-05 18:59:41 +08:00
neotf
a813b24184 feat: support claude cache and thinking for upstream [OpenRouter] (#983)
* feat: support claude cache for upstream [OpenRouter]

* feat: support claude thinking for upstream [OpenRouter]

* feat: reasoning is common params for OpenRouter
2025-06-05 17:35:48 +08:00
RedwindA
0827ebd22e fix: 移除流式响应结尾的[Done],以适应Gemini API的行为 2025-06-04 15:41:25 +08:00
IcedTangerine
b90aa227ef Merge pull request #1107 from QuantumNous/gemini-relay
Gemini 格式
2025-06-03 10:50:50 +08:00
Calcium-Ion
c668362f9d Merge pull request #1139 from RedwindA/gemini-fix
feat: 增加对Gemini MimeType类型的验证
2025-06-02 22:33:01 +08:00
RedwindA
088abcdedc feat: 增加对GeminiMIME类型的验证 2025-06-02 19:00:55 +08:00
RedwindA
7aad5b0479 refactor: enhance cleanFunctionParameters for improved handling of JSON schema, including support for $defs and conditional keywords 2025-06-01 02:08:13 +08:00
CaIon
46f95fddcd feat: add ToMap method and enhance OpenAI request handling 2025-06-01 01:10:10 +08:00
creamlike1024
2da94e62d5 fix: 流式请求ping 2025-05-31 22:13:17 +08:00
Calcium-Ion
4febdff3ac Merge pull request #1122 from akkuman/feat/stream-tts
feat: streaming response for tts
2025-05-31 18:44:48 +08:00
xqx121
efd4a46a97 Fix: Gemini2.5pro ThinkingConfig 2025-05-31 17:50:00 +08:00
Akkuman
2e5943c1d4 feat: streaming response for tts 2025-05-29 10:56:01 +08:00
creamlike1024
ac9df0c147 fix: pingerCtx 泄漏 2025-05-28 21:34:45 +08:00
tbphp
c5dff26d6c fix: Vertex channel global region format 2025-05-27 21:50:53 +08:00
skynono
ea075f75e2 fix: ali parameter.enable_thinking must be set to false for non-streaming calls 2025-05-26 17:41:02 +08:00
creamlike1024
77d6299557 vertex 2025-05-26 15:02:20 +08:00
creamlike1024
253f487d80 gemini stream 2025-05-26 14:50:50 +08:00
creamlike1024
75d859dce2 gemini text generation 2025-05-26 13:34:41 +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
CaIon
94455e34e6 fix: update Init method to correctly set RequestMode based on upstream model name prefixes 2025-05-23 01:34:53 +08:00
CaIon
6436a165af feat: enhance Gemini response handling by adding reasoning content and updating JSON decoding method 2025-05-22 16:11:50 +08:00
CaIon
526b7e6048 feat: add Thought field to GeminiPart and update response handling in streamResponseGeminiChat2OpenAI 2025-05-22 15:52:23 +08:00
CaIon
0bf328939a refactor: update JSON field names in GeminiChatRequest for consistency 2025-05-19 20:26:30 +08:00
Calcium-Ion
bb18f64d1f Merge pull request #1067 from QuantumNous/coze
Coze 渠道
2025-05-16 16:11:02 +08:00
creamlike1024
63232607cf coze stream 2025-05-16 10:27:07 +08:00
creamlike1024
e9690c7ad7 add frontend display, more model 2025-05-15 20:00:59 +08:00
creamlike1024
5e8217db0f use channel bot id 2025-05-13 22:23:38 +08:00
creamlike1024
ee7cdae0a8 cozeChatHelper 2025-05-13 22:01:12 +08:00
creamlike1024
7e0b2521a7 DoRequest 2025-05-13 21:13:34 +08:00
王永振
6a92483b01 fix: ALI completions api path error 2025-05-13 13:39:44 +08:00
creamlike1024
cd8a2f85db add coze request 2025-05-13 12:52:22 +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
creamlike1024
a074e994b0 feat: send SSE ping before get response 2025-05-09 13:57:00 +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
liusanp
9265d41b84 fix: xAi response 2025-05-08 23:19:35 +08:00
liusanp
89d40bbbf3 fix: xAi requestUrl 2025-05-08 23:19:34 +08:00
liusanp
2e73714f49 fix: quality, size or style are not supported by xAI API 2025-05-08 23:19:32 +08:00
Alex Liu
7ecd9d053e fix: gemini response json schema 2025-05-07 18:08:56 +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