t0ng7u
9af71caf73
🛠️ fix: Align setup API errors to HTTP 200 with {success:false, message}
...
Unify the setup initialization endpoint’s error contract to match the rest
of the project and keep the frontend unchanged.
Changes
- controller/setup.go: Return HTTP 200 with {success:false, message} for all
predictable errors in POST /api/setup, including:
- already initialized
- invalid payload
- username too long
- password mismatch
- password too short
- password hashing failure
- root user creation failure
- option persistence failures (SelfUseModeEnabled, DemoSiteEnabled)
- setup record creation failure
- web/src/components/setup/SetupWizard.jsx: Restore catch handler to the
previous generic toast (frontend logic unchanged).
- web/src/helpers/utils.jsx: Restore the original showError implementation
(no Axios response.data parsing required).
Why
- Keep API behavior consistent across endpoints so the UI can rely on the
success flag and message in the normal .then() flow instead of falling
into Axios 4xx errors that only show a generic "400".
Impact
- UI now displays specific server messages during initialization without
frontend adaptations.
- Note: clients relying solely on HTTP status codes for error handling
should inspect the JSON body (success/message) instead.
No changes to the happy path; initialization success responses are unchanged.
2025-09-16 16:55:35 +08:00
Xyfacai
91e57a4c69
feat: jimeng kling 支持new api 嵌套中转
2025-09-16 16:28:27 +08:00
Calcium-Ion
45a6a779e5
Merge pull request #1814 from ShibaInu64/fix/volcengine-image-model
...
fix: VolcEngine渠道-图片生成 API-渠道测试报错
2025-09-16 15:36:56 +08:00
huanghejian
49c7a0dee5
Merge branch 'main' into fix/volcengine-image-model
2025-09-16 14:58:59 +08:00
huanghejian
956244c742
fix: VolcEngine doubao-seedream-4-0-250828
2025-09-16 14:30:12 +08:00
Calcium-Ion
752dc11dd4
Merge pull request #1813 from QuantumNous/fix1797
...
fix: openai responses api 未统计图像生成调用计费
2025-09-16 14:07:14 +08:00
creamlike1024
17be7c3b45
fix: imageGenerationCall involves billing
2025-09-16 13:02:15 +08:00
creamlike1024
11cf70e60d
fix: openai responses api 未统计图像生成调用计费
2025-09-16 12:47:59 +08:00
QuentinHsu
dfa27f3412
feat: add jsconfig.json and configure path aliases
2025-09-15 22:30:41 +08:00
QuentinHsu
e34b5def60
feat: add date range preset constants and use them in the log filter
2025-09-15 21:59:25 +08:00
Xyfacai
63f94e7669
fix: 非openai 渠道使用 SystemPrompt 设置会panic
2025-09-15 19:38:31 +08:00
IcedTangerine
18a385f817
Merge pull request #1805 from feitianbubu/pr/jimeng-video-3.0
...
feat: 支持即梦视频3.0,支持文生图, 图生图, 首尾帧生图
2025-09-15 17:12:28 +08:00
Calcium-Ion
8e95d338b5
Merge pull request #1807 from QuantumNous/fix-stripe-successurl
...
fix: stripe支付成功未正确跳转
2025-09-15 16:24:20 +08:00
creamlike1024
f236785ed5
fix: stripe支付成功未正确跳转
2025-09-15 16:22:37 +08:00
feitianbubu
f3e220b196
feat: jimeng video 3.0 req_key convert
2025-09-15 15:54:13 +08:00
feitianbubu
33bf267ce8
feat: 支持即梦视频3.0,新增10s(frames=241)支持
2025-09-15 15:10:39 +08:00
IcedTangerine
05c2dde38f
Merge pull request #1698 from QuantumNous/imageratio-and-audioratio-edit
...
feat: 图像倍率,音频倍率和音频补全倍率配置
2025-09-15 14:20:05 +08:00
creamlike1024
0ee5670be6
Merge branch 'alpha' into imageratio-and-audioratio-edit
2025-09-15 14:12:24 +08:00
Xyfacai
9790e2c4f6
fix: gemini support webp file
2025-09-15 01:01:48 +08:00
Calcium-Ion
4f760a8d40
Merge pull request #1799 from seefs001/fix/setting
...
fix: settings
2025-09-14 13:01:09 +08:00
Seefs
8563eafc57
fix: settings
2025-09-14 12:59:44 +08:00
CaIon
72d5b35d3f
feat: implement SSRF protection settings and update related references
2025-09-13 18:15:03 +08:00
Calcium-Ion
7d71f467d9
Merge pull request #1794 from seefs001/fix/veo3
...
fix veo3 adapter
2025-09-13 17:33:18 +08:00
Seefs
aea732ab92
Merge pull request #1795 from seefs001/fix/veo3
...
Fix/veo3
2025-09-13 16:31:55 +08:00
Seefs
da6f24a3d4
fix veo3 adapter
2025-09-13 16:26:14 +08:00
CaIon
28ed42130c
fix: update references from setting to system_setting for ServerAddress
2025-09-13 15:27:41 +08:00
Seefs
96215c9fd5
Merge pull request #1792 from QuantumNous/alpha
...
veo
2025-09-13 13:16:33 +08:00
Seefs
6628fd9181
Merge branch 'main' into alpha
2025-09-13 13:14:34 +08:00
Seefs
a3b8a1998a
Merge pull request #1659 from Sh1n3zZ/feat-vertex-veo
...
feat: vertex veo (#1450 )
2025-09-13 13:11:02 +08:00
Seefs
6a34d365ec
Merge branch 'alpha' into feat-vertex-veo
2025-09-13 13:10:39 +08:00
CaIon
406a3e4dca
Merge remote-tracking branch 'origin/main'
2025-09-13 12:54:49 +08:00
CaIon
c1d7ecdeec
fix(adaptor): correct VertexKeyType condition in SetupRequestHeader
2025-09-13 12:53:41 +08:00
CaIon
6451158680
Revert "feat: gemini-2.5-flash-image-preview 文本和图片输出计费"
...
This reverts commit e732c58426 .
2025-09-13 12:53:28 +08:00
creamlike1024
0bd4b34046
Merge branch 'feitianbubu-pr/add-jimeng-video-images'
2025-09-13 09:57:01 +08:00
feitianbubu
f14b06ec3a
feat: jimeng video add images
2025-09-12 22:43:08 +08:00
feitianbubu
6ed775be8f
refactor: use common taskSubmitReq
2025-09-12 22:43:03 +08:00
CaIon
b712279b2a
feat(i18n): update TOTP verification message with configuration details
2025-09-12 21:53:21 +08:00
CaIon
1bffe3081d
feat(settings): 移除单位美元额度设置项,为后续修改作准备
2025-09-12 21:14:10 +08:00
CaIon
cfebe80822
Merge remote-tracking branch 'origin/main'
2025-09-12 19:54:46 +08:00
CaIon
17e697af8f
feat(i18n): add translations for pricing terms in English
2025-09-12 19:54:02 +08:00
CaIon
01b35bb667
Merge remote-tracking branch 'origin/main'
2025-09-12 19:29:40 +08:00
CaIon
d8410d2f11
feat(payment): add payment settings configuration and update payment methods handling
2025-09-12 19:29:34 +08:00
CaIon
e68eed3d40
feat(channel): add support for Vertex AI key type configuration in settings
2025-09-12 14:06:09 +08:00
Calcium-Ion
04cc668430
Merge pull request #1784 from Husky-Yellow/fix/1773
...
fix: UI 未对齐问题
2025-09-12 12:39:29 +08:00
Calcium-Ion
5d76e16324
Merge pull request #1780 from ShibaInu64/feature/support-amazon-nova
...
feat: support amazon nova model
2025-09-12 12:38:44 +08:00
Zhaokun Zhang
b6c547ae98
fix: UI 未对齐问题
2025-09-11 21:34:49 +08:00
CaIon
93adcd57d7
fix(responses): allow pass-through body for specific channel settings. ( close #1762 )
2025-09-11 21:02:12 +08:00
Calcium-Ion
e813da59cc
Merge pull request #1775 from QuantumNous/alpha
...
Alpha
2025-09-11 18:47:35 +08:00
Xyfacai
b25ac0bfb6
fix: 预扣额度使用 relay info 传递
2025-09-11 16:04:32 +08:00
huanghejian
70c27bc662
feat: improve nova config
2025-09-11 12:31:43 +08:00