Seefs
112dd80fa1
fix: vertex maas api addr ( #2810 )
...
* fix: vertex maas api addr
2026-02-03 00:09:45 +08:00
papersnake
0271b6f145
Merge branch 'QuantumNous:main' into fix-claude-haiku
2025-12-26 16:23:34 +08:00
Seefs
45649249b2
fix: 在Vertex Adapter过滤content[].part[].functionResponse.id
2025-12-21 17:22:04 +08:00
Papersnake
ae040d7db2
feat: support claude-haiku-4-5-20251001 on vertex
2025-12-08 17:28:36 +08:00
firstmelody
06c23ea562
fix(adaptor): fix reasoning suffix not processing in vertex adapter
2025-12-08 01:12:29 +08:00
Papersnake
766b6bc795
feat: add claude-opus-4-5-20251101
2025-11-25 10:53: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
CaIon
2539464dcb
feat(adaptor): Add support for Claude-specific headers in SetupRequestHeader
2025-11-16 14:28:41 +08:00
Seefs
f4c0972dc9
feature: support vertex open source models
2025-11-16 14:23:11 +08:00
Seefs
fd55ba7f2c
feat: ShouldPreserveThinkingSuffix ( #2189 )
2025-11-07 17:43:33 +08:00
Seefs
5010f2d004
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
CaIon
0ecdf1b8ff
fix: update jwt package import to v5 across multiple files
2025-10-09 14:17:49 +08:00
Seefs
08b424a35e
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
112ab0b17c
feat: support claude-sonnet-4-5-20250929
2025-09-30 09:14:12 +08:00
wzxjohn
237f599422
fix(relay): wrong key param while enable sse
2025-09-19 11:22:03 +08:00
wzxjohn
da54561b36
fix(relay): wrong URL for claude model in GCP Vertex AI
2025-09-16 17:18:32 +08:00
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
...
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
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
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
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
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
...
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 )
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
2025-03-17 17:13:33 +08:00