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
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-05-22 16:11:50 +08:00
CaIon
526b7e6048
feat: add Thought field to GeminiPart and update response handling in streamResponseGeminiChat2OpenAI
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
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
Alex Liu
7ecd9d053e
fix: gemini response json schema
2025-05-07 18:08:56 +08:00
creamlike1024
8ea4c76f2b
feat: support /v1/responses API
2025-05-02 13:59:46 +08:00
CaIon
d309727e99
fix: gemini thinking tokens count #1014
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-04-29 16:21:54 +08:00
CaIon
fdd349c909
refactor: update GeminiThinkingConfig initialization
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
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
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-04-18 19:36:18 +08:00
CaIon
effa523a54
feat: support gemini output text and inline images. ( close #866 )
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
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
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-04-10 22:35:03 +08:00
CaIon
1e95160293
Update model-ratio.go
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-04-04 23:41:41 +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
1808837298@qq.com
47c297794d
feat: 初步兼容流模式下openai渠道类型转为claude格式访问 #862
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
2025-03-13 19:32:08 +08:00
1808837298@qq.com
78fc3a191c
feat: claude relay
2025-03-12 21:31:46 +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
832f4b2b1a
fix: Update Gemini safety settings category
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-02-26 19:18:00 +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 )
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
2025-02-26 16:54:43 +08:00
Sh1n3zZ
873a79f28f
feat: add Gemini Imagen image generation support
2025-02-18 01:41:58 +08:00
Calcium-Ion
b21ba28167
Merge pull request #723 from kuwork/main
...
Support for MokaAI M3E
2025-02-11 22:16:18 +07:00
HynoR
f062c3596d
chore: sync gemini aistudio model
2025-02-06 13:32:19 +08:00
kuwork
fdebb6e6e8
Merge branch 'main' into main
2025-02-04 22:52:37 +08:00
Jerry
fcc32ffbc9
Fix M3E not working
2025-01-23 05:54:39 +08:00
Butui Hu
6e710f3210
Fix temperature not being set to 0 due to json omitempty
...
The issue was caused by the `omitempty` tag in the Go struct, which prevented the `temperature` field from being included in the JSON output when it was set to 0.
Signed-off-by: Butui Hu <hot123tea123@gmail.com>
2025-01-21 12:54:09 +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
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- 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
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
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
tenacious
8a5d0d0f50
fix-gemini-json
2024-12-22 23:48:09 +08:00
CalciumIon
464220cdf1
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
CalciumIon
7d0f26c9cd
refactor: Simplify Gemini function parameter handling
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- Removed redundant checks for non-empty properties in function parameters.
- Set function parameters to nil when no properties are needed, streamlining the logic for handling Gemini requests.
- Improved code clarity and maintainability by eliminating unnecessary complexity.
2024-12-22 14:35:21 +08:00
CalciumIon
d13103b667
feat: Enhance Gemini function parameter handling
...
- Added logic to ensure that function parameters have non-empty properties.
- Implemented checks to add a default empty property if no parameters are needed.
- Updated the required field to match existing properties, improving the robustness of the Gemini function integration.
2024-12-22 14:29:14 +08:00
MartialBE
a8fa11f9d0
feat: support for Gemini structured output.
2024-12-21 16:01:17 +08:00
CalciumIon
1888a10394
refactor: Enhance error handling in Gemini request conversion
...
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
Publish Docker image (arm64) / Push Docker image to multiple registries (push) Has been cancelled
Linux Release / release (push) Has been cancelled
macOS Release / release (push) Has been cancelled
Windows Release / release (push) Has been cancelled
- Updated `CovertGemini2OpenAI` function to return an error alongside the GeminiChatRequest, improving error reporting for image processing.
- Modified `ConvertRequest` methods in both `adaptor.go` files to handle potential errors from the Gemini conversion, ensuring robust request handling.
- Improved clarity and maintainability of the code by explicitly managing error cases during request conversion.
2024-12-20 21:50:58 +08:00