RedwindA
cd1b3771bf
chore: update model lists for frequently used channels
2026-03-11 23:39:18 +08:00
CaIon
3b65c32573
fix: improve error message for unsupported image generation models
2026-03-04 00:36:03 +08:00
Seefs
0e9198e9b5
fix: preserve explicit zero values in native relay requests
2026-03-01 15:47:03 +08:00
Seefs
4360393dc1
fix: unify usage mapping and include toolUsePromptTokenCount in input tokens
2026-02-17 15:45:14 +08:00
CaIon
f57f7646d3
feat: refactor extra_body handling for improved configuration parsing
2026-02-11 22:15:22 +08:00
Seefs
ecebd619a4
fix: charge local input tokens when Gemini returns empty response
2026-02-05 15:57:17 +08:00
CaIon
7cfed0df8e
refactor(gemini): remove GeminiVisionMaxImageNum constant and related image count logic
2026-02-04 19:10:06 +08:00
CaIon
9ef7740fe7
feat(file): unify file handling with a new FileSource abstraction for URL and base64 data
2026-02-04 18:23:17 +08:00
thirking
8d67c571e4
fix: remove unnecessary unescapeMapOrSlice call in Gemini relay
...
The JSON serialization/deserialization already handles escape characters
correctly, so the unescapeMapOrSlice function is redundant.
2026-02-03 11:47:45 +08:00
RedwindA
e3f96120bc
feat(gemini): support cached token billing
2026-02-01 22:50:47 +08:00
RedwindA
826d4b9190
feat(gemini): map OpenAI stop to Gemini stopSequences
2026-01-29 21:30:27 +08:00
Seefs
00c5d9ffdf
feat: logs show reject reason
2026-01-25 14:52:18 +08:00
Seefs
68d9a227dd
fix: Charge locally even if there's an error
2026-01-25 14:32:51 +08:00
Seefs
d5b3d4b990
Merge branch 'upstream-main' into fix/pr-2540
...
# Conflicts:
# relay/channel/gemini/relay-gemini.go
2026-01-25 14:14:05 +08:00
Calcium-Ion
702c05c7b1
Merge pull request #2701 from seefs001/fix/gemini-tool-call-index
...
fix: calls to multiple tools in gemini all return index=0
2026-01-21 23:47:48 +08:00
Seefs
809a80815e
fix: issue where consecutive calls to multiple tools in gemini all returned an index of 0
2026-01-20 22:03:19 +08:00
Seefs
ea802f2297
fix: openAI function to gemini function field adjusted to whitelist mode
2026-01-15 13:26:42 +08:00
Seefs
138fcd2327
fix: clean propertyNames for gemini function
2026-01-11 23:34:18 +08:00
RedwindA
07e77b3c6f
refactor(gemini): 更新 GeminiModelsResponse 以使用 dto.GeminiModel 类型
2026-01-09 18:08:11 +08:00
RedwindA
c2464fc877
fix(gemini): fetch model list via native v1beta/models endpoint
...
Use the native Gemini Models API (/v1beta/models) instead of the OpenAI-compatible
path when listing models for Gemini channels, improving compatibility with
third-party Gemini-format providers that don't implement OpenAI routes.
- Add paginated model listing with timeout and optional proxy support
- Select an enabled key for multi-key Gemini channels
2026-01-09 18:00:40 +08:00
Xyfacai
5ed4583c0c
fix: 修复 gemini 文件类型不支持 image/jpg
2026-01-04 22:09:03 +08:00
Your Name
b6a25d9f0f
feat(gemini): 支持 tool_choice 参数转换,优化错误处理
2025-12-27 18:33:09 +08:00
RedwindA
1de78f8749
feat: map OpenAI developer role to Gemini system instructions
2025-12-27 02:52:33 +08:00
Seefs
da24a165d0
fix(gemini): handle minimal reasoning effort budget
...
- Add minimal case to clampThinkingBudgetByEffort to avoid defaulting to full thinking budget
2025-12-18 08:10:46 +08:00
CaIon
b58fa3debc
fix(helper): improve error handling in FlushWriter and related functions
2025-12-13 13:29:21 +08:00
Calcium-Ion
ffc45a756e
Merge pull request #2344 from seefs001/feature/gemini-thinking-level
...
feat: gemini 3 thinking level gemini-3-pro-preview-high
2025-12-02 21:55:43 +08:00
CaIon
f5b409d74f
feat: refactor token estimation logic
...
- Introduced new OpenAI text models in `common/model.go`.
- Added `IsOpenAITextModel` function to check for OpenAI text models.
- Refactored token estimation methods across various channels to use estimated prompt tokens instead of direct prompt token counts.
- Updated related functions and structures to accommodate the new token estimation approach, enhancing overall token management.
2025-12-02 21:34:39 +08:00
CaIon
4dbdbdec1d
feat(gemini): implement markdown image handling in text processing
2025-12-01 17:54:41 +08:00
Seefs
b6a02d8303
feat: gemini 3 thinking level gemini-3-pro-preview-high
2025-12-01 16:40:46 +08:00
CaIon
98f92f990a
feat(gemini): add validation and conversion for imageConfig parameters in extra_body
2025-11-30 19:31:08 +08:00
Seefs
3257723a55
Revert "OAI生图接口支持gemini 3 pro image preview"
2025-11-30 18:49:18 +08:00
Calcium-Ion
b19b2d62df
Merge pull request #2339 from QuantumNous/revert-2330-pr/fix-nano-banana-err
...
Revert "fix: nano-banana not compatible imageSize"
2025-11-30 18:48:09 +08:00
Calcium-Ion
f9c8624f2c
Merge pull request #2338 from QuantumNous/revert-2321-pr/gemini-image-edit
...
Revert "Gemini Image系列支持图像编辑"
2025-11-30 18:48:01 +08:00
Seefs
e29ff0060d
Revert "fix: nano-banana not compatible imageSize"
2025-11-30 18:46:10 +08:00
Seefs
d4a2c2ab54
Revert "Gemini Image系列支持图像编辑"
2025-11-30 18:45:54 +08:00
Seefs
e337936227
Revert "fix: gemini image correct generationConfig"
2025-11-30 18:45:23 +08:00
feitianbubu
77eb536b69
fix: nano-banana not compatible imageSize
2025-11-29 00:58:25 +08:00
feitianbubu
cb5a37abed
feat: gemini image support edit
2025-11-27 16:04:04 +08:00
feitianbubu
ab3cda3202
fix: gemini image correct generationConfig
2025-11-26 15:54:11 +08:00
feitianbubu
d859872e0d
feat: gemini-3-pro-image-preview add extra param
2025-11-26 12:03:24 +08:00
feitianbubu
bff04514a8
feat: support gemini-3-pro-image-preview via images/generations
2025-11-26 12:03:24 +08:00
Claude
25aed08361
feat: enable thoughtSignature for non-function-call messages
...
Previously thoughtSignature was only attached to messages with function
calls. This change extends the feature to also attach thoughtSignature
to the first text part of assistant/model messages when no tool_calls
are present, ensuring compatibility with Gemini thinking models in
regular conversation scenarios.
2025-11-24 00:31:20 +00:00
CaIon
8f039b3a53
feat: Set ContextKeyLocalCountTokens in NativeGeminiEmbeddingHandler for token tracking
2025-11-23 23:50:04 +08:00
CaIon
c939686509
refactor: Deprecate HARM_CATEGORY_CIVIC_INTEGRITY in safety settings
2025-11-23 23:45:48 +08:00
CaIon
84745d5ca4
feat: Add ContextKeyLocalCountTokens and update ResponseText2Usage to use context in multiple channels
2025-11-21 18:17:01 +08:00
Seefs
50c04a62f9
feat: Fill thoughtSignature only for Gemini/Vertex channels using the OpenAI format
2025-11-20 15:54:33 +08:00
Seefs
bc1f747418
feat: gemini-3-pro
2025-11-19 01:46:51 +08:00
Seefs
e082268533
feat: ShouldPreserveThinkingSuffix ( #2189 )
2025-11-07 17:43:33 +08:00
CaIon
384cba92cf
fix: remove redundant error handling for empty Gemini API response
2025-10-13 21:58:50 +08:00
CaIon
ec0633bdfb
fix: update error messages for unsupported parameter names in Google extra body
2025-10-12 22:21:45 +08:00