Seefs
28f7a4feef
fix: 在Vertex Adapter过滤content[].part[].functionResponse.id
2025-12-21 17:22:04 +08:00
firstmelody
121746a79e
fix(adaptor): fix reasoning suffix not processing in vertex adapter
2025-12-08 01:12:29 +08:00
Papersnake
79682dc542
feat: add claude-opus-4-5-20251101
2025-11-25 10:53: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
CaIon
196fa135fd
feat(adaptor): Add support for Claude-specific headers in SetupRequestHeader
2025-11-16 14:28:41 +08:00
Seefs
ab36de3725
feature: support vertex open source models
2025-11-16 14:23:11 +08:00
Seefs
e082268533
feat: ShouldPreserveThinkingSuffix ( #2189 )
2025-11-07 17:43:33 +08:00
Seefs
e1c7a4f41f
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
CaIon
60dc910a27
fix: update jwt package import to v5 across multiple files
2025-10-09 14:17:49 +08:00
Seefs
aab82f22fa
Merge pull request #1817 from wzxjohn/hotfix/relay_vertex_claude
...
fix(relay): wrong URL for claude model in GCP Vertex AI
2025-09-30 11:27:15 +08:00
papersnake
d7db30a23e
feat: support claude-sonnet-4-5-20250929
2025-09-30 09:14:12 +08:00
wzxjohn
8d92ce38ed
fix(relay): wrong key param while enable sse
2025-09-19 11:22:03 +08:00
wzxjohn
f2e9fd7afb
fix(relay): wrong URL for claude model in GCP Vertex AI
2025-09-16 17:18:32 +08:00
Seefs
6628fd9181
Merge branch 'main' into alpha
2025-09-13 13:14:34 +08:00
CaIon
c1d7ecdeec
fix(adaptor): correct VertexKeyType condition in SetupRequestHeader
2025-09-13 12:53:41 +08:00
CaIon
d8410d2f11
feat(payment): add payment settings configuration and update payment methods handling
2025-09-12 19:29:34 +08:00
Sh1n3zZ
81e29aaa3d
feat: vertex veo ( #1450 )
2025-08-27 18:06:47 +08:00
Calcium-Ion
e3a38d27f5
Merge pull request #1611 from nekohy/feats-zhipu_4v-anthropic
...
Feats:Standardize ClaudeHandler, add Zhipu_4v Anthropic native channel support
2025-08-23 13:48:18 +08:00
creamlike1024
e02e1e8d4a
fix: Guard against negative or zero n from ExtraBody to prevent uint underflow
2025-08-18 23:35:01 +08:00
Sh1n3zZ
974b93a8be
feat: imagen for vertex channel
2025-08-18 21:49:55 +08:00
Nekohy
652d71d799
feats:Standardize ClaudeHandler, add zhipu_4v Anthropic native support
2025-08-18 13:14:48 +08:00
CaIon
0bb43aa464
refactor: update function signatures to include context and improve file handling #1599
2025-08-15 18:40:54 +08:00
CaIon
0ea0a432bf
feat: support qwen claude format
2025-08-07 18:32:31 +08:00
Calcium-Ion
587888a688
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
24aa29598a
feat: add support for claude-opus-4-1 model and update ratios
2025-08-06 00:58:46 +08:00
CaIon
c056a7ad7c
feat: add support for multi-key channels in RelayInfo and access token caching
2025-08-02 22:12:15 +08:00
CaIon
97d6f10f15
feat: enhance ConvertGeminiRequest to set default role and handle YouTube video MIME type
2025-08-02 12:53:58 +08:00
creamlike1024
d2183af23f
feat: convert gemini format to openai chat completions
2025-08-01 22:23:35 +08:00
CaIon
f20b558e22
fix: correct request mode assignment logic in adaptor
2025-07-30 23:32:20 +08:00
CaIon
0cd93d67ff
fix: auto ban
2025-07-30 18:39:19 +08:00
CaIon
cb16bf552e
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
98952198bb
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
7b29f429ee
refactor: log params and channel params
...
refactor: log params and channel params
2025-07-07 14:26:37 +08:00
CaIon
f0f277dc2a
🔧 refactor(auth, channel, context): improve context setup and validation for multi-key channels
2025-07-06 12:37:56 +08:00
CaIon
53e3b35437
✨ feat: enhance JWT exchange process with proxy support. ( close #1087 )
2025-07-01 13:14:24 +08:00
RedwindA
9344cab59a
fix: update model name logic for vertex
2025-06-20 16:40:51 +08:00
sgyy
4447e51588
fix: Vertex channel global region format
2025-06-18 11:21:56 +08:00
IcedTangerine
b0cbf71a1c
Merge pull request #1107 from QuantumNous/gemini-relay
...
Gemini 格式
2025-06-03 10:50:50 +08:00
tbphp
6e72dcd0ba
fix: Vertex channel global region format
2025-05-27 21:50:53 +08:00
creamlike1024
156ad5c3fd
vertex
2025-05-26 15:02:20 +08:00
CaIon
1644b7b15d
feat: add new model entries for Claude Sonnet 4 and Claude Opus 4 across multiple components, including constants and cache settings
2025-05-23 15:20:16 +08:00
CaIon
18b3300ff1
feat: implement OpenAI responses handling and streaming support with built-in tool tracking
2025-05-05 00:40:16 +08:00
Calcium-Ion
48af027903
Merge pull request #1020 from QuantumNous/v1responses
...
feat: support /v1/responses API
2025-05-04 17:13:39 +08:00
creamlike1024
425feb88d8
feat: support /v1/responses API
2025-05-02 13:59:46 +08:00
tbphp
efc9d200b1
feat: support thinking suffix for vertex gemini channel
2025-04-29 13:30:03 +08:00
CaIon
473e8e0eaf
feat: support gemini output text and inline images. ( close #866 )
2025-04-15 02:32:51 +08:00
1808837298@qq.com
19935ee8ac
feat: Enhance ConvertClaudeRequest method to set request model and handle vertex-specific request conversion
2025-03-17 17:13:33 +08:00
CalciumIon
69e44a03b1
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
7e46d4217d
feat: 初步兼容流模式下openai渠道类型转为claude格式访问 #862
2025-03-13 19:32:08 +08:00
1808837298@qq.com
bd48f43410
feat: claude relay
2025-03-12 21:31:46 +08:00