etnAtker
933e42e5df
feat: 添加SiliconFlow图像生成接口自动转换支持
...
1. 将对SiliconFlow渠道的RelayModeImagesGenerations请求,转发至v1/images/generations端点。
2. SiliconFlow图像生成接口额外参数适配。
2025-10-13 20:06:33 +08:00
skynono
7c543a9e19
feat: jimeng images base64 limit ( #2032 )
2025-10-13 15:17:23 +08:00
Seefs
0dfd8f2743
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
61f388bf84
feat: jimeng use openai sdk input_reference i2v
2025-10-13 13:06:03 +08:00
Xyfacai
b7a07e1ef7
refactor: Openai video model 移动到 dto
2025-10-13 11:45:45 +08:00
CaIon
063926dd29
fix: update error messages for unsupported parameter names in Google extra body
2025-10-12 22:21:45 +08:00
feitianbubu
7f9309ee17
feat: add vidu use openai sdk
2025-10-11 17:11:44 +08:00
feitianbubu
d733803c8a
fix: kling create video via openai sdk
2025-10-11 17:11:44 +08:00
feitianbubu
d724f25db4
refactor: add openaiVideo and method
2025-10-11 17:05:36 +08:00
feitianbubu
7c7313a937
feat: add jimeng use openai sdk
2025-10-11 17:05:33 +08:00
Seefs
5010f2d004
format: package name -> github.com/QuantumNous/new-api ( #2017 )
2025-10-11 15:30:09 +08:00
feitianbubu
c0859c056f
feat: add openai sdk for kling
2025-10-11 02:43:56 +08:00
feitianbubu
69f497e350
refactor: openAI video use OpenAIVideoConverter
2025-10-11 02:43:43 +08:00
Calcium-Ion
2b39ae557c
Merge pull request #1998 from seefs001/feature/pplx-channel
...
feat: pplx channel
2025-10-10 16:33:27 +08:00
Seefs
1d32327d04
feat: pplx channel
2025-10-10 16:12:15 +08:00
feitianbubu
94b68c2b63
feat: add sora video fetch task
2025-10-10 15:25:29 +08:00
feitianbubu
405c6945eb
feat: add sora video proxy video content
2025-10-09 15:00:02 +08:00
feitianbubu
b1db126490
feat: add sora video retrieve task
2025-10-09 15:00:02 +08:00
feitianbubu
1d1759aaae
feat: add sora video submit task
2025-10-09 15:00:02 +08:00
CaIon
0ecdf1b8ff
fix: update jwt package import to v5 across multiple files
2025-10-09 14:17:49 +08:00
Seefs
d65a04ae9b
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
56a6c24722
feat: gemini imagen quality value
2025-10-09 01:16:04 +08:00
RedwindA
efdb1c5b46
fix(openai): account cached tokens for
...
zhipu_v4 usage
2025-10-08 16:52:49 +08:00
CaIon
35105b3da5
feat: update Gemini API response handling to include block reason and improve error reporting
2025-10-05 19:33:47 +08:00
Moment
b2d3fa5d95
fix: Gemini missing func name for multi-streaming tool calls (except the first).
2025-10-04 13:21:07 +08:00
Calcium-Ion
2958114205
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
2c669cce91
feat: Allow FIM chat requests without messages
2025-10-03 02:27:02 +08:00
Seefs
b65e271971
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
48d649056c
✨ feat(api): add header override processing with variable support
2025-10-02 19:29:57 +08:00
CaIon
9d418d0df8
refactor(adaptor): extract common header operations into a separate function
2025-10-02 15:28:09 +08:00
Calcium-Ion
6fd746a339
Merge pull request #1956 from QuantumNous/alpha
...
alpha -> main
2025-10-02 15:26:59 +08:00
Seefs
711cbeb1c5
Merge pull request #1954 from QuantumNous/main
...
main -> alpha
2025-10-02 13:50:18 +08:00
feitianbubu
3c796a1166
feat: add doubao video use quota by total token
2025-10-02 04:00:46 +08:00
feitianbubu
c25ca9a791
feat: add doubao video generate
2025-10-02 04:00:43 +08:00
RedwindA
78f34bd095
fix(openai): add nil checks for web_search streaming to prevent panic
2025-10-01 22:19:22 +08:00
RedwindA
fb428ee9c0
fix(jina): remove encoding_format for jina embedding
2025-10-01 02:06:30 +08:00
CaIon
121e01c764
fix(adaptor): update relay mode handling to support relay format
2025-09-30 16:53:57 +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
Seefs
853814045a
Merge pull request #1925 from seefs001/feature/claude-context-editing
...
feat: claude context editing
2025-09-30 09:48:32 +08:00
Seefs
bc1971843d
Merge pull request #1926 from seefs001/fix/claude-beta
...
fix: claude beta=true
2025-09-30 09:48:18 +08:00
Seefs
946da49721
fix: claude beta=true
2025-09-30 09:46:46 +08:00
Seefs
740c46102b
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
a7f6065f42
feat: claude context editing
2025-09-30 09:22:40 +08:00
papersnake
112ab0b17c
feat: support claude-sonnet-4-5-20250929
2025-09-30 09:14:12 +08:00
t0ng7u
8294a76bc2
💱 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
60045cdceb
fix: submodel adapter
2025-09-29 21:55:34 +08:00
dd
40a6d957b5
Merge branch 'QuantumNous:main' into main
2025-09-29 14:13:50 +08:00
Seefs
343d8091fc
Merge branch 'main-upstream' into fix/volcengine_default_baseurl
...
# Conflicts:
# main.go
2025-09-29 12:08:52 +08:00
Calcium-Ion
1ba2cb0b92
Merge pull request #1897 from QuantumNous/openrouter-enterprise
...
feat: 添加 openrouter-enterprise 支持
2025-09-28 15:31:01 +08:00
CaIon
6f8edd49c4
fix: streamline error handling in OpenRouter response processing
2025-09-28 15:29:01 +08:00