Seefs
40f2b2fd68
fix: Only models with the "qwen" designation can use the Claude-compatible interface; others require conversion.
2026-01-20 22:56:02 +08:00
Seefs
4fe84bad86
fix: replace Alibaba's Claude-compatible interface with the new interface
2026-01-20 22:36:36 +08:00
Seefs
44f9d9040b
feat: add support for Doubao /v1/responses ( #2567 )
...
* feat: add support for Doubao /v1/responses
2026-01-03 12:35:35 +08:00
CaIon
b5a0c822d2
feat(adaptor): 新适配百炼多种图片生成模型
...
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
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
- wan2.6系列生图与编辑,适配多图生成计费
- wan2.5系列生图与编辑
- z-image-turbo生图,适配prompt_extend计费
2025-12-29 23:00:17 +08:00
feitianbubu
010638a884
feat: add wan2.5-i2i-preview support
2025-11-14 20:30:18 +08:00
CaIon
b6e5ec8c49
refactor(adaptor): Comment out enable_thinking logic for clarity and future adjustments
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
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-12 17:24:25 +08:00
Seefs
5010f2d004
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
CaIon
781a708173
feat: support qwen-image-edit
2025-08-25 14:33:12 +08:00
CaIon
488f6a2e71
feat: enhance image request handling and add async support
Publish Docker image (Multi Registries) / Push Docker image to multiple registries (push) Has been cancelled
2025-08-24 21:52:56 +08:00
Nekohy
57b1ddcc5f
feats:Standardize ClaudeHandler, add zhipu_4v Anthropic native support
2025-08-18 13:14:48 +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
9682c46cc4
feat: implement moonshot adaptor for request handling and response processing
2025-08-08 17:28:21 +08:00
CaIon
d37af13b33
feat: support qwen claude format
2025-08-07 18:32:31 +08:00
feitianbubu
ea7fd9875b
feat: enable thinking mode on ali thinking model
2025-08-07 11:59:54 +08:00
creamlike1024
689dbfe71a
feat: convert gemini format to openai chat completions
2025-08-01 22:23:35 +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
skynono
b4e3147124
fix: ali embedding lose prompt_tokens
2025-07-02 15:12:02 +08:00
RedwindA
b8cfb64a45
feat: ali rerank
2025-06-07 21:29:46 +08:00
skynono
ea075f75e2
fix: ali parameter.enable_thinking must be set to false for non-streaming calls
2025-05-26 17:41:02 +08:00
王永振
6a92483b01
fix: ALI completions api path error
2025-05-13 13:39:44 +08:00
creamlike1024
8ea4c76f2b
feat: support /v1/responses API
2025-05-02 13:59:46 +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
61ad1adbda
feat: Improve embedding request handling and support across channels
...
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
- Update EmbeddingRequest DTO to support more flexible input types
- Add input parsing method to handle various input formats
- Implement ConvertEmbeddingRequest for multiple channel adaptors
- Remove relayMode parameter from EmbeddingHelper
- Add input validation for embedding requests
- Simplify embedding request conversion for different channels
2025-02-12 14:39:36 +08:00
Jerry
fcc32ffbc9
Fix M3E not working
2025-01-23 05:54:39 +08:00
1808837298@qq.com
9e4133a890
feat: realtime
...
(cherry picked from commit a5529df3e1a4c08a120e8c05203a7d885b0fe8d8)
2024-11-05 19:24:14 +08:00
CalciumIon
d06018cd3f
chore: gopool
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
2024-07-19 01:07:37 +08:00
CalciumIon
261ba5a813
feat: support ali image
2024-07-19 00:45:52 +08:00
CalciumIon
ee0e1c9736
refactor: audio relay
2024-07-16 22:07:10 +08:00
CalciumIon
7b20b4ed3d
fix: azure stream options
Publish Docker image (amd64) / Push Docker image to multiple registries (push) Has been cancelled
2024-07-15 16:05:30 +08:00
CalciumIon
c7ba4a245b
feat: support cohere rerank
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
2024-07-06 17:09:22 +08:00
CaIon
54c18dc89e
fix: remove sensitive check on completion ( close #157 )
2024-03-29 22:20:14 +08:00
CaIon
580f2894ac
feat: 初步兼容生成内容检查
2024-03-20 19:00:51 +08:00
1808837298@qq.com
436afe925e
feat: 初步重构完成
2024-02-29 16:21:25 +08:00
1808837298@qq.com
1735981217
feat: 初步重构
2024-02-29 01:08:18 +08:00