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
Seefs
e1c7a4f41f
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
Sh1n3zZ
8f00af181b
feat: gemini imagen quality value
2025-10-09 01:16:04 +08:00
CaIon
74f93d41f3
feat: update Gemini API response handling to include block reason and improve error reporting
2025-10-05 19:33:47 +08:00
Moment
7763f11da7
fix: Gemini missing func name for multi-streaming tool calls (except the first).
2025-10-04 13:21:07 +08:00
Seefs
9e8b9995a6
feat: gemini urlContext
2025-09-27 16:16:34 +08:00
CaIon
b5d3e87ea2
Merge branch 'alpha'
2025-09-19 14:20:15 +08:00
creamlike1024
9f1ab16aa5
feat: 支持 gemini-embedding-001
2025-09-19 00:24:01 +08:00
Xyfacai
9790e2c4f6
fix: gemini support webp file
2025-09-15 01:01:48 +08:00
CaIon
6451158680
Revert "feat: gemini-2.5-flash-image-preview 文本和图片输出计费"
...
This reverts commit e732c58426 .
2025-09-13 12:53:28 +08:00
creamlike1024
e732c58426
feat: gemini-2.5-flash-image-preview 文本和图片输出计费
2025-08-27 21:30:52 +08:00