Seefs
82f0860a96
Merge branch 'main' into alpha
2025-09-13 13:14:34 +08:00
CaIon
15d845cd01
fix(adaptor): correct VertexKeyType condition in SetupRequestHeader
2025-09-13 12:53:41 +08:00
CaIon
c47d9fb5b5
feat(payment): add payment settings configuration and update payment methods handling
2025-09-12 19:29:34 +08:00
Sh1n3zZ
cf8b021b61
feat: vertex veo ( #1450 )
2025-08-27 18:06:47 +08:00
Calcium-Ion
fe53424ed8
Merge pull request #1611 from nekohy/feats-zhipu_4v-anthropic
...
Publish Docker image (Multi Registries) / Push Docker image to multiple registries (push) Has been cancelled
Feats:Standardize ClaudeHandler, add Zhipu_4v Anthropic native channel support
2025-08-23 13:48:18 +08:00
creamlike1024
47ddf76af9
fix: Guard against negative or zero n from ExtraBody to prevent uint underflow
2025-08-18 23:35:01 +08:00
Sh1n3zZ
8a1f6534fc
feat: imagen for vertex channel
2025-08-18 21:49:55 +08:00
Nekohy
57b1ddcc5f
feats:Standardize ClaudeHandler, add zhipu_4v Anthropic native support
2025-08-18 13:14:48 +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
d37af13b33
feat: support qwen claude format
2025-08-07 18:32:31 +08:00
Calcium-Ion
e7c657ef87
Merge pull request #1511 from neotf/feat-05
...
feat: add support for claude-opus-4-1 model and update ratios
2025-08-06 12:03:33 +08:00
neotf
c9bcdc89f0
feat: add support for claude-opus-4-1 model and update ratios
2025-08-06 00:58:46 +08:00
CaIon
1f9134cd6b
feat: add support for multi-key channels in RelayInfo and access token caching
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-02 22:12:15 +08:00
CaIon
f0b024eb77
feat: enhance ConvertGeminiRequest to set default role and handle YouTube video MIME type
2025-08-02 12:53:58 +08:00
creamlike1024
689dbfe71a
feat: convert gemini format to openai chat completions
2025-08-01 22:23:35 +08:00
CaIon
40848f28d4
fix: correct request mode assignment logic in adaptor
Publish Docker image (Multi Registries) / Push Docker image to multiple registries (push) Has been cancelled
2025-07-30 23:32:20 +08:00
CaIon
2db71673a5
fix: auto ban
2025-07-30 18:39:19 +08:00
CaIon
1437ceaa56
Merge branch 'alpha' into refactor_error
...
# Conflicts:
# controller/channel.go
# middleware/distributor.go
# model/channel.go
# model/user.go
# model/user_cache.go
# relay/common/relay_info.go
2025-07-10 15:11:55 +08:00
CaIon
4a9ca4209a
refactor: Introduce standardized API error
...
This commit refactors the application's error handling mechanism by introducing a new standardized error type, `types.NewAPIError`. It also renames common JSON utility functions for better clarity.
Previously, internal error handling was tightly coupled to the `dto.OpenAIError` format. This change decouples the internal logic from the external API representation.
Key changes:
- A new `types.NewAPIError` struct is introduced to serve as a canonical internal representation for all API errors.
- All relay adapters (OpenAI, Claude, Gemini, etc.) are updated to return `*types.NewAPIError`.
- Controllers now convert the internal `NewAPIError` to the client-facing `OpenAIError` format at the API boundary, ensuring backward compatibility.
- Channel auto-disable/enable logic is updated to use the new standardized error type.
- JSON utility functions are renamed to align with Go's standard library conventions (e.g., `UnmarshalJson` -> `Unmarshal`, `EncodeJson` -> `Marshal`).
2025-07-10 15:02:40 +08:00
Xiangyuan-liu
db98c0f4b1
refactor: log params and channel params
...
refactor: log params and channel params
2025-07-07 14:26:37 +08:00
CaIon
cf11a22c3a
🔧 refactor(auth, channel, context): improve context setup and validation for multi-key channels
2025-07-06 12:37:56 +08:00
CaIon
cfc8dcf7af
✨ feat: enhance JWT exchange process with proxy support. ( close #1087 )
2025-07-01 13:14:24 +08:00
RedwindA
4f84fd6a71
fix: update model name logic for vertex
2025-06-20 16:40:51 +08:00
sgyy
302ca0b847
fix: Vertex channel global region format
2025-06-18 11:21:56 +08:00
IcedTangerine
b90aa227ef
Merge pull request #1107 from QuantumNous/gemini-relay
...
Gemini 格式
2025-06-03 10:50:50 +08:00
tbphp
c5dff26d6c
fix: Vertex channel global region format
2025-05-27 21:50:53 +08:00
creamlike1024
77d6299557
vertex
2025-05-26 15:02:20 +08:00
CaIon
3cc1a79449
feat: add new model entries for Claude Sonnet 4 and Claude Opus 4 across multiple components, including constants and cache settings
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-23 15:20:16 +08:00
CaIon
e9812b0fd5
feat: implement OpenAI responses handling and streaming support with built-in tool tracking
2025-05-05 00:40:16 +08:00
Calcium-Ion
4cc1f2b4e3
Merge pull request #1020 from QuantumNous/v1responses
...
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
feat: support /v1/responses API
2025-05-04 17:13:39 +08:00
creamlike1024
8ea4c76f2b
feat: support /v1/responses API
2025-05-02 13:59:46 +08:00
tbphp
5b81e88e41
feat: support thinking suffix for vertex gemini channel
2025-04-29 13:30:03 +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
1808837298@qq.com
9b2cc6add7
feat: Enhance ConvertClaudeRequest method to set request model and handle vertex-specific 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
2025-03-17 17:13:33 +08:00
CalciumIon
5021000c5d
refactor: Simplify OpenAI handler function signature and remove unused TextResponseWithError struct; introduce common_handler for rerank functionality
2025-03-14 17:31:05 +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
1808837298@qq.com
8b52803910
fix: vertex 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
2025-03-05 16:43:40 +08:00
1808837298@qq.com
894f950e96
fix: vertex claude
2025-03-03 20:06:08 +08:00
1808837298@qq.com
ed1a1c9b09
fix: Correct model request configuration in Vertex Claude adaptor
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-27 20:51:10 +08:00
1808837298@qq.com
5371af0b42
feat: Refactor model configuration management with new config system
...
- Introduce a new configuration management approach for model-specific settings
- Update Gemini settings to use the new config system with more flexible management
- Add support for dynamic configuration updates in option handling
- Modify Claude and Vertex adaptors to use new configuration methods
- Enhance web interface to support namespaced configuration keys
2025-02-27 20:49:34 +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
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
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
CalciumIon
52aa31e07d
feat: Update model lists and enhance model retrieval in Adaptor
...
- Refactored ModelList in the gemini constant to include new models and remove outdated ones.
- Modified the GetModelList function in the Adaptor to consolidate model lists from multiple sources, ensuring a comprehensive and updated list is returned.
- Commented out deprecated models in the vertex constants for clarity and future reference.
2024-12-11 21:39:41 +08:00
1808837298@qq.com
9e4133a890
feat: realtime
...
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00
CalciumIon
5d8151aff2
feat: 支持vertex ai渠道多个部署地区
2024-08-28 18:43:40 +08:00
CalciumIon
b8664e71e6
feat: support vertex ai #377
2024-08-27 20:19:51 +08:00