t0ng7u
a2b2f1ce27
🛠️ 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
9fa9cf38c2
feat: jimeng kling 支持new api 嵌套中转
2025-09-16 16:28:27 +08:00
Calcium-Ion
cd8f64d83b
Merge pull request #1814 from ShibaInu64/fix/volcengine-image-model
...
fix: VolcEngine渠道-图片生成 API-渠道测试报错
2025-09-16 15:36:56 +08:00
huanghejian
f56783c4eb
Merge branch 'main' into fix/volcengine-image-model
2025-09-16 14:58:59 +08:00
huanghejian
97755c2e94
fix: VolcEngine doubao-seedream-4-0-250828
2025-09-16 14:30:12 +08:00
Calcium-Ion
d91041fa82
Merge pull request #1813 from QuantumNous/fix1797
...
fix: openai responses api 未统计图像生成调用计费
2025-09-16 14:07:14 +08:00
creamlike1024
b9befccd9e
fix: imageGenerationCall involves billing
2025-09-16 13:02:15 +08:00
creamlike1024
f6984272bf
fix: openai responses api 未统计图像生成调用计费
2025-09-16 12:47:59 +08:00
somnifex
8c6789656f
chore: 删除历史文件
2025-09-16 08:58:19 +08:00
somnifex
b48c292cc3
feat: 添加ollama聊天流处理和非流处理功能
2025-09-16 08:58:06 +08:00
somnifex
05241aea92
fix: 修复ollamaChatHandler中ReasoningContent字段的赋值逻辑
2025-09-16 08:54:34 +08:00
somnifex
414b959e65
fix: 添加对Thinking字段的处理逻辑,确保推理内容正确传递
2025-09-16 08:51:29 +08:00
somnifex
b80811a412
fix: 修复图像URL处理逻辑,确保正确生成base64数据
2025-09-16 08:13:28 +08:00
somnifex
f57c539a1f
fix: 修复ollamaChatHandler中的FinishReason字段赋值逻辑
2025-09-15 23:43:39 +08:00
somnifex
a1f79761cf
refactor: 简化请求转换函数和流处理逻辑
2025-09-15 23:41:09 +08:00
somnifex
a9354df549
fix: 优化ollamaStreamHandler中的停止和最终使用响应逻辑
2025-09-15 23:23:53 +08:00
somnifex
503a2669d5
refactor: 更新请求转换逻辑,优化工具调用解析
2025-09-15 23:15:46 +08:00
somnifex
cdf0c9dae4
fix: 优化ollamaChatStreamChunk结构体字段格式
2025-09-15 23:09:10 +08:00
somnifex
767d46e829
feat: 重构ollama渠道请求
2025-09-15 23:01:14 +08:00
QuentinHsu
fc4660f403
feat: add jsconfig.json and configure path aliases
2025-09-15 22:30:41 +08:00
QuentinHsu
2836ec2eb3
feat: add date range preset constants and use them in the log filter
2025-09-15 21:59:25 +08:00
Xyfacai
c176e713f7
fix: 非openai 渠道使用 SystemPrompt 设置会panic
2025-09-15 19:38:31 +08:00
IcedTangerine
46c561eef2
Merge pull request #1805 from feitianbubu/pr/jimeng-video-3.0
...
feat: 支持即梦视频3.0,支持文生图, 图生图, 首尾帧生图
2025-09-15 17:12:28 +08:00
Calcium-Ion
9af65142d7
Merge pull request #1807 from QuantumNous/fix-stripe-successurl
...
fix: stripe支付成功未正确跳转
2025-09-15 16:24:20 +08:00
creamlike1024
8f5c29342d
fix: stripe支付成功未正确跳转
2025-09-15 16:22:37 +08:00
feitianbubu
cf446438ed
feat: jimeng video 3.0 req_key convert
2025-09-15 15:54:13 +08:00
feitianbubu
6b028bfedb
feat: 支持即梦视频3.0,新增10s(frames=241)支持
2025-09-15 15:10:39 +08:00
DD
1c48391cdb
add submodel icon
2025-09-15 14:31:31 +08:00
DD
71d41d6eaa
Merge branch 'main' of github.com:danding5/new-api
...
# Conflicts:
# relay/relay_adaptor.go
2025-09-15 14:31:06 +08:00
IcedTangerine
6b9c1c3ae8
Merge pull request #1698 from QuantumNous/imageratio-and-audioratio-edit
...
feat: 图像倍率,音频倍率和音频补全倍率配置
2025-09-15 14:20:05 +08:00
creamlike1024
d21886b9fb
Merge branch 'alpha' into imageratio-and-audioratio-edit
2025-09-15 14:12:24 +08:00
Xyfacai
b0bb2fe5a9
fix: gemini support webp file
2025-09-15 01:01:48 +08:00
Calcium-Ion
5fd74c3428
Merge pull request #1799 from seefs001/fix/setting
...
fix: settings
2025-09-14 13:01:09 +08:00
Seefs
cb0d3d60d3
fix: settings
2025-09-14 12:59:44 +08:00
CaIon
c3f5478593
feat: implement SSRF protection settings and update related references
2025-09-13 18:15:03 +08:00
Calcium-Ion
523ee96bff
Merge pull request #1794 from seefs001/fix/veo3
...
fix veo3 adapter
2025-09-13 17:33:18 +08:00
Seefs
a9d3547633
Merge pull request #1795 from seefs001/fix/veo3
...
Fix/veo3
2025-09-13 16:31:55 +08:00
Seefs
30763deb96
fix veo3 adapter
2025-09-13 16:26:14 +08:00
CaIon
9e17df3f74
fix: update references from setting to system_setting for ServerAddress
2025-09-13 15:27:41 +08:00
Seefs
ad0928388a
Merge pull request #1792 from QuantumNous/alpha
...
veo
2025-09-13 13:16:33 +08:00
Seefs
82f0860a96
Merge branch 'main' into alpha
2025-09-13 13:14:34 +08:00
Seefs
2a9e8f6cdc
Merge pull request #1659 from Sh1n3zZ/feat-vertex-veo
...
feat: vertex veo (#1450 )
2025-09-13 13:11:02 +08:00
Seefs
8d32b08d44
Merge branch 'alpha' into feat-vertex-veo
2025-09-13 13:10:39 +08:00
CaIon
287b3ab2c9
Merge remote-tracking branch 'origin/main'
2025-09-13 12:54:49 +08:00
CaIon
15d845cd01
fix(adaptor): correct VertexKeyType condition in SetupRequestHeader
2025-09-13 12:53:41 +08:00
CaIon
1a8d781721
Revert "feat: gemini-2.5-flash-image-preview 文本和图片输出计费"
...
This reverts commit a45513a7a6 .
2025-09-13 12:53:28 +08:00
creamlike1024
4b99a996e9
Merge branch 'feitianbubu-pr/add-jimeng-video-images'
2025-09-13 09:57:01 +08:00
feitianbubu
4db3aebb64
feat: jimeng video add images
2025-09-12 22:43:08 +08:00
feitianbubu
e55c84f599
refactor: use common taskSubmitReq
2025-09-12 22:43:03 +08:00
CaIon
59d6ff0caf
feat(i18n): update TOTP verification message with configuration details
2025-09-12 21:53:21 +08:00