CaIon
e19e9ad2fa
feat(gemini): implement markdown image handling in text processing
2025-12-01 17:54:41 +08:00
CaIon
5d05cd9d32
feat(gemini): add validation and conversion for imageConfig parameters in extra_body
2025-11-30 19:31:08 +08:00
Seefs
c074ed2eb5
Revert "OAI生图接口支持gemini 3 pro image preview"
2025-11-30 18:49:18 +08:00
Calcium-Ion
8c5c944fd6
Merge pull request #2339 from QuantumNous/revert-2330-pr/fix-nano-banana-err
...
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (amd64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (arm64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Create multi-arch manifests (Docker Hub) (push) Has been cancelled
Build Electron App / build (windows-latest) (push) Has been cancelled
Build Electron App / release (push) Has been cancelled
Release (Linux, macOS, Windows) / Linux Release (push) Has been cancelled
Release (Linux, macOS, Windows) / macOS Release (push) Has been cancelled
Release (Linux, macOS, Windows) / Windows Release (push) Has been cancelled
Revert "fix: nano-banana not compatible imageSize"
2025-11-30 18:48:09 +08:00
Calcium-Ion
d33e4c8d35
Merge pull request #2338 from QuantumNous/revert-2321-pr/gemini-image-edit
...
Revert "Gemini Image系列支持图像编辑"
2025-11-30 18:48:01 +08:00
Seefs
4c8287411e
Revert "fix: nano-banana not compatible imageSize"
2025-11-30 18:46:10 +08:00
Seefs
b827d1f778
Revert "Gemini Image系列支持图像编辑"
2025-11-30 18:45:54 +08:00
Seefs
2fb1fa08d2
Revert "fix: gemini image correct generationConfig"
2025-11-30 18:45:23 +08:00
feitianbubu
3901781068
fix: nano-banana not compatible imageSize
2025-11-29 00:58:25 +08:00
feitianbubu
fb55d56089
feat: gemini image support edit
2025-11-27 16:04:04 +08:00
feitianbubu
156229ce92
fix: gemini image correct generationConfig
2025-11-26 15:54:11 +08:00
feitianbubu
2d6f8fb58f
feat: gemini-3-pro-image-preview add extra param
2025-11-26 12:03:24 +08:00
feitianbubu
796d62c605
feat: support gemini-3-pro-image-preview via images/generations
2025-11-26 12:03:24 +08:00
Claude
7645300f96
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
89709dfa74
feat: Set ContextKeyLocalCountTokens in NativeGeminiEmbeddingHandler for token tracking
2025-11-23 23:50:04 +08:00
CaIon
ed3858ada7
refactor: Deprecate HARM_CATEGORY_CIVIC_INTEGRITY in safety settings
2025-11-23 23:45:48 +08:00
CaIon
c8bbf7bed8
feat: Add ContextKeyLocalCountTokens and update ResponseText2Usage to use context in multiple channels
2025-11-21 18:17:01 +08:00
Seefs
4ac4849ab6
feat: Fill thoughtSignature only for Gemini/Vertex channels using the OpenAI format
2025-11-20 15:54:33 +08:00
Seefs
89a6303032
feat: gemini-3-pro
2025-11-19 01:46:51 +08:00
Seefs
fd55ba7f2c
feat: ShouldPreserveThinkingSuffix ( #2189 )
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (amd64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (arm64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Create multi-arch manifests (Docker Hub) (push) Has been cancelled
Build Electron App / build (windows-latest) (push) Has been cancelled
Build Electron App / release (push) Has been cancelled
Release (Linux, macOS, Windows) / Linux Release (push) Has been cancelled
Release (Linux, macOS, Windows) / macOS Release (push) Has been cancelled
Release (Linux, macOS, Windows) / Windows Release (push) Has been cancelled
2025-11-07 17:43:33 +08:00
CaIon
7391b15b4b
fix: remove redundant error handling for empty Gemini API response
2025-10-13 21:58:50 +08:00
CaIon
063926dd29
fix: update error messages for unsupported parameter names in Google extra body
2025-10-12 22:21:45 +08:00
Seefs
5010f2d004
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
Sh1n3zZ
56a6c24722
feat: gemini imagen quality value
2025-10-09 01:16:04 +08:00
CaIon
35105b3da5
feat: update Gemini API response handling to include block reason and improve error reporting
2025-10-05 19:33:47 +08:00
Moment
b2d3fa5d95
fix: Gemini missing func name for multi-streaming tool calls (except the first).
2025-10-04 13:21:07 +08:00
Seefs
23c1bd472e
feat: gemini urlContext
2025-09-27 16:16:34 +08:00
CaIon
552d795742
Merge branch 'alpha'
2025-09-19 14:20:15 +08:00
creamlike1024
5cae6be108
feat: 支持 gemini-embedding-001
2025-09-19 00:24:01 +08:00
Xyfacai
b0bb2fe5a9
fix: gemini support webp file
2025-09-15 01:01:48 +08:00
CaIon
1a8d781721
Revert "feat: gemini-2.5-flash-image-preview 文本和图片输出计费"
...
This reverts commit a45513a7a66b53e941b00a3ea9c2ba753e752e2f.
2025-09-13 12:53:28 +08:00
creamlike1024
a45513a7a6
feat: gemini-2.5-flash-image-preview 文本和图片输出计费
2025-08-27 21:30:52 +08:00
CaIon
3401abe4d2
fix(relay-gemini): update media handling in candidate content processing
Publish Docker image (Multi Registries) / Push Docker image to multiple registries (push) Has been cancelled
2025-08-27 12:14:50 +08:00
Sh1n3zZ
8a1f6534fc
feat: imagen for vertex channel
2025-08-18 21:49:55 +08:00
CaIon
61601d38c4
feat: 完善gemini格式转换
2025-08-17 19:08:06 +08:00
CaIon
77b100ba2b
refactor: update function signatures to include context and improve file handling #1599
Publish Docker image (Multi Registries) / Push Docker image to multiple registries (push) Has been cancelled
2025-08-15 18:40:54 +08:00
CaIon
c9e9a24e99
refactor: centralize logging and update resource initialization
...
This commit refactors the logging mechanism across the application by replacing direct logger calls with a centralized logging approach using the `common` package. Key changes include:
- Replaced instances of `logger.SysLog` and `logger.FatalLog` with `common.SysLog` and `common.FatalLog` for consistent logging practices.
- Updated resource initialization error handling to utilize the new logging structure, enhancing maintainability and readability.
- Minor adjustments to improve code clarity and organization throughout various modules.
This change aims to streamline logging and improve the overall architecture of the codebase.
2025-08-14 21:10:04 +08:00
CaIon
97ea8b6560
refactor: Introduce pre-consume quota and unify relay handlers
...
This commit introduces a major architectural refactoring to improve quota management, centralize logging, and streamline the relay handling logic.
Key changes:
- **Pre-consume Quota:** Implements a new mechanism to check and reserve user quota *before* making the request to the upstream provider. This ensures more accurate quota deduction and prevents users from exceeding their limits due to concurrent requests.
- **Unified Relay Handlers:** Refactors the relay logic to use generic handlers (e.g., `ChatHandler`, `ImageHandler`) instead of provider-specific implementations. This significantly reduces code duplication and simplifies adding new channels.
- **Centralized Logger:** A new dedicated `logger` package is introduced, and all system logging calls are migrated to use it, moving this responsibility out of the `common` package.
- **Code Reorganization:** DTOs are generalized (e.g., `dalle.go` -> `openai_image.go`) and utility code is moved to more appropriate packages (e.g., `common/http.go` -> `service/http.go`) for better code structure.
2025-08-14 20:05:06 +08:00
CaIon
32978f9cd9
✨ feat: Simplify response handling by returning raw response body directly
2025-08-11 20:07:24 +08:00
CaIon
ce74e94fc7
✨ feat: Refactor Gemini tools handling to support JSON raw message format
2025-08-11 19:48:04 +08:00
RedwindA
f5a52bc5b5
feat: update dto for embeddings
2025-08-09 18:31:56 +08:00
RedwindA
1dcb9a01ce
Merge branch 'alpha' into 'feat/support-native-gemini-embedding'
2025-08-09 18:05:11 +08:00
Calcium-Ion
2c4dc44661
Merge pull request #1500 from antecanis8/gemini_batchembedcontents
...
fix: Gemini embedding model only embeds the first text in a batch
2025-08-09 11:42:08 +08:00
RedwindA
74057324b2
fix typo; add ParamOverride for Gemini Embedding
2025-08-09 01:07:48 +08:00
RedwindA
8127ad9929
feat: support native Gemini Embedding
2025-08-09 00:27:33 +08:00
CaIon
5b5b97eb30
feat: 完善格式抓换,修复gemini渠道和openai渠道在claude code中使用的问题
2025-08-08 16:45:37 +08:00
Calcium-Ion
cdc6ab61df
Merge pull request #1518 from RedwindA/fix/disable-gemini-sse
...
Fix/disable-gemini-ping
2025-08-07 20:44:24 +08:00
CaIon
a4b02107dd
feat: update MaxTokens handling
2025-08-07 16:15:59 +08:00
RedwindA
342bf59c91
fix: 调整Disable Ping标志的设置位置
2025-08-07 06:18:22 +08:00
CaIon
2e41362f2e
fix: update budget calculation logic in relay-gemini to use clamping function
Publish Docker image (Multi Registries) / 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-08-06 16:25:48 +08:00