Calcium-Ion
71fe637d2a
Merge pull request #1231 from RedwindA/feat/gemini-budget-in-name
...
feat(Gemini): implement thinking budget control in model name
2025-06-17 00:03:53 +08:00
CaIon
288f279379
🔧 refactor(relay): replace UUID generation with helper function for response IDs
2025-06-16 21:02:27 +08:00
RedwindA
1e1a6aae55
feat: implement thinking budget control in model name
2025-06-15 23:20:41 +08:00
Calcium-Ion
f95feae571
Merge pull request #1180 from RedwindA/fix/gemini-tool
...
🐛 fix(Gemini): improve JSON parsing for tool content handling
2025-06-09 20:51:28 +08:00
CaIon
2fb222b9a4
refactor(dto): change function and encoding fields to use json.RawMessage for improved flexibility
2025-06-08 16:28:47 +08:00
CaIon
fcb9647aeb
fix(relay-gemini): remove outdated unsupported models from CovertGemini2OpenAI function
2025-06-08 16:22:39 +08:00
Calcium-Ion
5d7e688bfe
Merge pull request #1174 from QuantumNous/refactor/message
...
refactor: message content 改成 any
2025-06-08 16:22:20 +08:00
CaIon
7469446a20
fix(relay-gemini): add unsupported models to CovertGemini2OpenAI function
2025-06-08 16:04:31 +08:00
RedwindA
da41545139
🐛 fix(Gemini): improve JSON parsing for tool content handling
2025-06-08 14:35:56 +08:00
Xyfacai
8343fe0740
refactor: message content 改成 any
...
refactor: message content 改成 any
2025-06-07 23:47:22 +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
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
xqx121
efd4a46a97
Fix: Gemini2.5pro ThinkingConfig
2025-05-31 17:50:00 +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
Alex Liu
7ecd9d053e
fix: gemini response json schema
2025-05-07 18:08:56 +08:00
CaIon
d309727e99
fix: gemini thinking tokens count #1014
2025-04-29 16:21:54 +08:00
CaIon
fdd349c909
refactor: update GeminiThinkingConfig initialization
2025-04-18 23:13:28 +08:00
CaIon
ace677b3e7
refactor: remove unsupported 'exclusiveMinimum' field from cleanFunctionParameters
2025-04-18 22:40:05 +08:00
CaIon
6e2e10adf1
refactor: remove unsupported root-level fields from cleanFunctionParameters
2025-04-18 21:38:12 +08:00
CaIon
d378543819
feat: add gemini thinking suffix support #981
2025-04-18 19:36:18 +08:00
CaIon
effa523a54
feat: support gemini output text and inline images. ( close #866 )
2025-04-15 02:32:51 +08:00
CaIon
577b18a1a1
feat: enhance file handling and logging in the application
2025-04-11 16:23:54 +08:00
CaIon
95f0ed1821
feat: implement parameter cleaning for Gemini functions
2025-04-10 22:35:03 +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
Sh1n3zZ
9a878df8c0
feat: gemini Embeddings support
2025-03-10 23:32:06 +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
0646fa1892
fix: gemini&claude tool call format #795 #766
2025-02-26 23:56:10 +08:00
1808837298@qq.com
23de62ec0d
fix: claude tool call format #795 #766
2025-02-26 23:40:16 +08:00
1808837298@qq.com
8a30d64a75
feat: Add Gemini version settings configuration support ( close #568 )
2025-02-26 18:19:09 +08:00
1808837298@qq.com
0a369cc193
feat: Add Gemini safety settings configuration support ( close #703 )
2025-02-26 16:54:43 +08:00
Yan
1cdb03d821
fix: Gemini 其他文件类型的支持(Base64URL)
2024-12-29 10:11:39 +08:00
Yan
9fc2f6a3b5
fix: Gemini 函数调用的文本转义
2024-12-29 06:11:44 +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
Yan
b7b2347263
fix: 转义 Gemini 工具调用中的反斜杠
2024-12-28 18:29:48 +08:00
Yan
49a0db1da8
fix: add index in the tool calls when chat by stream (gemini)
2024-12-28 17:56:31 +08:00
tenacious
18e308bdf7
fix delete title schema
2024-12-26 00:24:45 +08:00
Yan
411d3a6251
fix: gemini func call
2024-12-24 20:46:02 +08:00
Yan
dbd412f852
fix: mutil func call in gemini
2024-12-23 01:26:14 +08:00
Calcium-Ion
344ebade79
Merge pull request #651 from tenacioustommy/fix-gemini-json
...
fix-gemini-json-schema
2024-12-23 00:04:08 +08:00
CalciumIon
424af80c77
feat: Enhance GeminiChatHandler to include RelayInfo
...
- Updated the GeminiChatHandler function to accept an additional parameter, RelayInfo, allowing for better context handling during chat operations.
- Modified the DoResponse method in the Adaptor to pass RelayInfo to GeminiChatHandler, ensuring consistent usage of upstream model information.
- Enhanced the GeminiChatStreamHandler to utilize the upstream model name from RelayInfo, improving response accuracy and data representation in Gemini requests.
2024-12-23 00:02:15 +08:00
CalciumIon
f2f7f64151
refactor: Remove unused context and logging in CovertGemini2OpenAI function
...
- Eliminated the unused `context` import and the logging of `geminiRequest` in the `CovertGemini2OpenAI` function, improving code cleanliness and reducing unnecessary overhead.
- This change enhances the maintainability of the code by removing redundant elements that do not contribute to functionality.
2024-12-22 23:54:11 +08:00
CalciumIon
26e2170bd4
feat: Add FunctionResponse type and enhance GeminiPart structure
...
- Introduced a new `FunctionResponse` type to encapsulate function call responses, improving the clarity of data handling.
- Updated the `GeminiPart` struct to include the new `FunctionResponse` field, allowing for better representation of function call results in Gemini requests.
- Modified the `CovertGemini2OpenAI` function to handle tool calls more effectively by setting the message role and appending function responses to the Gemini parts, enhancing the integration with OpenAI and Gemini systems.
2024-12-22 23:53:25 +08:00