etnAtker
fdbc31eb9a
fix: 修复PR的潜在问题
...
1. 解析ImageRequest的Extra时,处理err
2. DoResponse方法添加RelayModeImagesGenerations(fallthrough)
2025-10-13 20:20:08 +08:00
etnAtker
3172c956f7
feat: 添加SiliconFlow图像生成接口自动转换支持
...
1. 将对SiliconFlow渠道的RelayModeImagesGenerations请求,转发至v1/images/generations端点。
2. SiliconFlow图像生成接口额外参数适配。
2025-10-13 20:06:33 +08:00
skynono
826ef2e5a6
feat: jimeng images base64 limit ( #2032 )
2025-10-13 15:17:23 +08:00
Seefs
4a4238d830
Merge pull request #2029 from feitianbubu/pr/jimeng-support-oai-files
...
feat: jimeng use openai sdk input_reference i2v
2025-10-13 14:14:43 +08:00
feitianbubu
dfca9681c8
feat: jimeng use openai sdk input_reference i2v
2025-10-13 13:06:03 +08:00
Xyfacai
a6e6897f63
refactor: Openai video model 移动到 dto
2025-10-13 11:45:45 +08:00
CaIon
ec0633bdfb
fix: update error messages for unsupported parameter names in Google extra body
2025-10-12 22:21:45 +08:00
feitianbubu
e08f799994
feat: add vidu use openai sdk
2025-10-11 17:11:44 +08:00
feitianbubu
cc41ac63bf
fix: kling create video via openai sdk
2025-10-11 17:11:44 +08:00
feitianbubu
4e0f4b207d
refactor: add openaiVideo and method
2025-10-11 17:05:36 +08:00
feitianbubu
8a7033e5a3
feat: add jimeng use openai sdk
2025-10-11 17:05:33 +08:00
Seefs
e1c7a4f41f
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
feitianbubu
11e8e4e7a6
feat: add openai sdk for kling
2025-10-11 02:43:56 +08:00
feitianbubu
35422b316d
refactor: openAI video use OpenAIVideoConverter
2025-10-11 02:43:43 +08:00
Calcium-Ion
f091f663c2
Merge pull request #1998 from seefs001/feature/pplx-channel
...
feat: pplx channel
2025-10-10 16:33:27 +08:00
Seefs
e8966c7374
feat: pplx channel
2025-10-10 16:12:15 +08:00
feitianbubu
2479da4986
feat: add sora video fetch task
2025-10-10 15:25:29 +08:00
feitianbubu
b880094296
feat: add sora video proxy video content
2025-10-09 15:00:02 +08:00
feitianbubu
9c37b63f2e
feat: add sora video retrieve task
2025-10-09 15:00:02 +08:00
feitianbubu
9f4a2d64a3
feat: add sora video submit task
2025-10-09 15:00:02 +08:00
CaIon
60dc910a27
fix: update jwt package import to v5 across multiple files
2025-10-09 14:17:49 +08:00
Seefs
15a7edf6d6
Merge pull request #1982 from RedwindA/feat/zhipu_cache
...
fix(openai): account cached tokens for zhipu_v4 usage
2025-10-09 12:27:11 +08:00
Sh1n3zZ
8f00af181b
feat: gemini imagen quality value
2025-10-09 01:16:04 +08:00
RedwindA
f930cdbb51
fix(openai): account cached tokens for
...
zhipu_v4 usage
2025-10-08 16:52:49 +08:00
CaIon
74f93d41f3
feat: update Gemini API response handling to include block reason and improve error reporting
2025-10-05 19:33:47 +08:00
Moment
7763f11da7
fix: Gemini missing func name for multi-streaming tool calls (except the first).
2025-10-04 13:21:07 +08:00
Calcium-Ion
cc6fcebda1
Merge pull request #1957 from seefs001/pr/custom-currency-1923
...
💱 feat(settings): introduce site-wide quota display type
2025-10-03 21:17:16 +08:00
RedwindA
69e1542fc9
feat: Allow FIM chat requests without messages
2025-10-03 02:27:02 +08:00
Seefs
3199e2e8cd
Merge branch 'main-upstream' into pr/custom-currency-1923
...
# Conflicts:
# web/src/components/settings/personal/cards/AccountManagement.jsx
# web/src/components/table/channels/modals/EditChannelModal.jsx
# web/src/hooks/channels/useChannelsData.jsx
# web/src/hooks/common/useSidebar.js
# web/src/i18n/locales/fr.json
# web/src/pages/Setting/Operation/SettingsGeneral.jsx
2025-10-02 20:30:48 +08:00
CaIon
01bcbf09c6
✨ feat(api): add header override processing with variable support
2025-10-02 19:29:57 +08:00
CaIon
01469aa01c
refactor(adaptor): extract common header operations into a separate function
2025-10-02 15:28:09 +08:00
Calcium-Ion
0769184b9b
Merge pull request #1956 from QuantumNous/alpha
...
alpha -> main
2025-10-02 15:26:59 +08:00
Seefs
c1492be131
Merge pull request #1954 from QuantumNous/main
...
main -> alpha
2025-10-02 13:50:18 +08:00
feitianbubu
b244a06ca1
feat: add doubao video use quota by total token
2025-10-02 04:00:46 +08:00
feitianbubu
c320410c84
feat: add doubao video generate
2025-10-02 04:00:43 +08:00
RedwindA
2200bb9166
fix(openai): add nil checks for web_search streaming to prevent panic
2025-10-01 22:19:22 +08:00
RedwindA
f5a774f22c
fix(jina): remove encoding_format for jina embedding
2025-10-01 02:06:30 +08:00
CaIon
0b91e45197
fix(adaptor): update relay mode handling to support relay format
2025-09-30 16:53:57 +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
Seefs
933ab4340b
Merge pull request #1925 from seefs001/feature/claude-context-editing
...
feat: claude context editing
2025-09-30 09:48:32 +08:00
Seefs
3b306bb5d3
Merge pull request #1926 from seefs001/fix/claude-beta
...
fix: claude beta=true
2025-09-30 09:48:18 +08:00
Seefs
8118424039
fix: claude beta=true
2025-09-30 09:46:46 +08:00
Seefs
31544405f4
Merge pull request #1924 from prnake/claude-4-5
...
feat: support claude-sonnet-4-5-20250929
2025-09-30 09:26:34 +08:00
Seefs
30cb3b8bc2
feat: claude context editing
2025-09-30 09:22:40 +08:00
papersnake
d7db30a23e
feat: support claude-sonnet-4-5-20250929
2025-09-30 09:14:12 +08:00
t0ng7u
39a868faea
💱 feat(settings): introduce site-wide quota display type (USD/CNY/TOKENS/CUSTOM)
...
Replace the legacy boolean “DisplayInCurrencyEnabled” with an injected, type-safe
configuration `general_setting.quota_display_type`, and wire it through the
backend and frontend.
Backend
- Add `QuotaDisplayType` to `operation_setting.GeneralSetting` with injected
registration via `config.GlobalConfig.Register("general_setting", ...)`.
Helpers: `IsCurrencyDisplay()`, `IsCNYDisplay()`, `GetQuotaDisplayType()`.
- Expose `quota_display_type` in `/api/status` and keep legacy
`display_in_currency` for backward compatibility.
- Logger: update `LogQuota` and `FormatQuota` to support USD/CNY/TOKENS. When
CNY is selected, convert using `operation_setting.USDExchangeRate`.
- Controllers:
- `billing`: compute subscription/usage amounts based on the selected type
(USD: divide by `QuotaPerUnit`; CNY: USD→CNY; TOKENS: keep raw tokens).
- `topup` / `topup_stripe`: treat inputs as “amount” for USD/CNY and as
token-count for TOKENS; adjust min topup and pay money accordingly.
- `misc`: include `quota_display_type` in status payload.
- Compatibility: in `model/option.UpdateOption`, map updates to
`DisplayInCurrencyEnabled` → `general_setting.quota_display_type`
(true→USD, false→TOKENS). Keep exporting the legacy key in `OptionMap`.
Frontend
- Settings: replace the “display in currency” switch with a Select
(`general_setting.quota_display_type`) offering USD / CNY / Tokens.
Provide fallback mapping from legacy `DisplayInCurrencyEnabled`.
- Persist `quota_display_type` to localStorage (keep `display_in_currency`
for legacy components).
- Rendering helpers: base all quota/price rendering on `quota_display_type`;
use `usd_exchange_rate` for CNY symbol/values.
- Pricing page: default view currency follows site display type (USD/CNY),
while TOKENS mode still allows per-view currency toggling when needed.
Notes
- No database migrations required.
- Legacy clients remain functional via compatibility fields.
2025-09-29 23:23:31 +08:00
Seefs
76180b1df4
fix: submodel adapter
2025-09-29 21:55:34 +08:00
dd
4c2979bb67
Merge branch 'QuantumNous:main' into main
2025-09-29 14:13:50 +08:00
Seefs
9a1ef8b957
Merge branch 'main-upstream' into fix/volcengine_default_baseurl
...
# Conflicts:
# main.go
2025-09-29 12:08:52 +08:00
Calcium-Ion
045ba23566
Merge pull request #1897 from QuantumNous/openrouter-enterprise
...
feat: 添加 openrouter-enterprise 支持
2025-09-28 15:31:01 +08:00