Commit Graph

6136 Commits

Author SHA1 Message Date
admin 71be2a2b4e feat: save full generation params in image history with info popover
Docker Build / Build and Push Docker Image (push) Successful in 4m0s
2026-06-23 04:43:41 +08:00
admin bc505e6cec fix: add w-full to SelectTrigger components for consistent width
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-23 04:38:09 +08:00
admin 073b7420b3 feat: image playground improvements - prompt in history, resolution tiers, result-based billing
Docker Build / Build and Push Docker Image (push) Successful in 4m1s
2026-06-23 04:23:34 +08:00
admin 1c6b820c5b fix: use actual returned image count for per-resolution billing instead of request n
Docker Build / Build and Push Docker Image (push) Successful in 4m0s
2026-06-22 20:09:51 +08:00
admin 24f167f4c7 fix: show Per Resolution billing mode for image models in usage log details
Docker Build / Build and Push Docker Image (push) Successful in 4m0s
2026-06-22 19:10:05 +08:00
admin 884b786a07 fix: prevent concurrent c.Writer writes from keepalive and ping goroutines in image requests
Docker Build / Build and Push Docker Image (push) Successful in 3m56s
2026-06-22 13:34:22 +08:00
admin 9df4b577df fix: add keepalive and timeout to OpenaiImageStreamHandler to prevent client_gone on long image generation
Docker Build / Build and Push Docker Image (push) Successful in 4m1s
2026-06-22 09:50:29 +08:00
admin 15a3699d21 fix: image delete button not clickable due to hover overlay blocking clicks
Docker Build / Build and Push Docker Image (push) Successful in 4m3s
2026-06-22 08:46:54 +08:00
admin e7dc1effe1 fix: improve upstream error display in image playground
Docker Build / Build and Push Docker Image (push) Successful in 4m3s
2026-06-22 02:50:37 +08:00
admin ced375076c feat: save generated images to local server storage
Docker Build / Build and Push Docker Image (push) Successful in 3m57s
2026-06-22 02:15:38 +08:00
admin d60df24ee6 fix: keep SSE keepalive alive during DoResponse for image generation
Docker Build / Build and Push Docker Image (push) Successful in 4m0s
2026-06-22 01:43:29 +08:00
admin cdedff67b8 fix: send periodic SSE keepalive while waiting for upstream image response
Docker Build / Build and Push Docker Image (push) Successful in 4m3s
2026-06-22 01:23:22 +08:00
admin ffcde16c08 fix: send SSE keepalive immediately to prevent proxy timeout on image requests
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-22 00:43:25 +08:00
admin ce69c23a24 fix: use SSE streaming for image playground and add edits to distributor group check
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-22 00:19:10 +08:00
admin d66c5cb82d fix: pass group parameter in image edit requests
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-21 23:55:39 +08:00
admin d151b72fa6 fix: record upstream error message in backend image log other data
Docker Build / Build and Push Docker Image (push) Successful in 4m1s
Pass errMsg into other[error_message] so it persists to the database and can be queried by the frontend.
2026-06-21 23:31:57 +08:00
admin 37da5de9e4 fix: preserve upstream image errors in playground logs
Docker Build / Build and Push Docker Image (push) Successful in 4m29s
Tighten timeout message mapping and expose upstream image error details in usage log metadata and the log details dialog.
2026-06-21 20:51:54 +08:00
admin 9c0e74fecb fix: resolve image relay build errors
Docker Build / Build and Push Docker Image (push) Successful in 3m58s
Use existing stream status reasons and remove invalid error handling on image stream chunk writes so the backend build succeeds.
2026-06-21 20:31:43 +08:00
admin 3724c0446e fix: avoid premature timeout in image stream relay
Docker Build / Build and Push Docker Image (push) Failing after 2m39s
Handle OpenAI image SSE responses without the generic stream watchdog so long-running image jobs do not fail before the upstream completion event arrives.
2026-06-21 20:23:08 +08:00
admin b717ea6817 fix: restore image playground error handling syntax
Docker Build / Build and Push Docker Image (push) Successful in 4m1s
Repair the corrupted catch block in image playground so the frontend build succeeds and timeout handling works as intended.
2026-06-21 19:45:54 +08:00
admin d109d40457 fix: avoid false timeout errors in image playground
Docker Build / Build and Push Docker Image (push) Failing after 1m29s
Increase image request timeout and only show timeout messaging for actual request timeouts or 504 responses.
2026-06-21 19:32:14 +08:00
admin 27e4545518 fix: convert unsupported reference images before upload
Docker Build / Build and Push Docker Image (push) Successful in 4m6s
Auto-convert pasted or uploaded reference images to PNG when the source MIME type is not supported by the upstream image edit API.
2026-06-21 19:13:01 +08:00
admin 1c7f652b38 fix: i18n playground suggestion buttons (Analyze data, Surprise me, etc.)
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
- Display text now uses t() for all 6 languages (zh/en/fr/ru/ja/vi)
- Prompt sent to AI remains in English for better model comprehension
- Split textKey (display) and prompt (sent to AI) in suggestion items

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 12:23:03 +08:00
admin 0ac29aff97 fix: set preloadStaleTime to prevent TanStack _nonReactive error on dashboard
Docker Build / Build and Push Docker Image (push) Successful in 3m54s
The TypeError 'Cannot read properties of undefined (reading _nonReactive)'
was caused by TanStack Router's intent-based preloading creating query
observers during route preload before the React context was fully ready.

Setting defaultPreloadStaleTime from 0 to 30s prevents aggressive
re-preloading of already-fresh data, which was the primary trigger for
this race condition.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 03:20:41 +08:00
admin 0feb9bfdea fix: add missing AlertTitle import in payment settings page
Docker Build / Build and Push Docker Image (push) Successful in 3m55s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 03:07:55 +08:00
admin 30b528e722 fix: add missing ShieldAlert import in payment page, unify failed image delete button style
Docker Build / Build and Push Docker Image (push) Successful in 4m0s
1. Fix payment gateway page crash (ReferenceError: ShieldAlert is not defined)
   - Added ShieldAlert to lucide-react import in payment-settings-section.tsx

2. Unify failed image delete button style with successful image
   - Changed from always-visible bg-black/40 to hover-visible bg-black/60
   - Matches the delete button style on successful image cards

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 02:58:53 +08:00
admin 6787c06934 fix: add missing Alert import in payment page, improve image generation error messages
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
1. Fix payment gateway page crash (ReferenceError: Alert is not defined)
   - Added missing import { Alert, AlertDescription } from @/components/ui/alert
   in payment-settings-section.tsx which used <Alert> without importing it

2. Improve image generation timeout/error messages
   - 504 errors now show 'Image generation timed out' instead of raw status code
   - 502/503 errors show 'service temporarily unavailable' message
   - Added i18n keys for timeout and unavailability messages (en/zh)
   - Applied to both main generate and retry-failed handlers

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 02:43:53 +08:00
admin 285dc06d57 fix: improve image playground, channel test logging, and rename Playground to Chat Workspace
Docker Build / Build and Push Docker Image (push) Successful in 4m4s
1. Rename Playground to Chat Workspace / 对话工作台 in all 6 languages
   - Updated i18n values in zh/en/fr/ru/ja/vi locale files
   - Route path /playground and Image Playground left unchanged

2. Fix image playground count slider stuck at 1
   - Added +/- stepper buttons alongside the Slider for Count control
   - Added count normalization (Math.round, clamp 1-10)
   - Added Decrease/Increase i18n keys

3. Add delete and clear-failed for failed image results
   - Failed image cards now show a delete (X) button
   - Toolbar adds 'Clear failed' button when failures exist
   - Added handleClearFailed in index.tsx
   - Added 'Clear failed' i18n key

4. Log image generation failures to consume log
   - ImageHelper now records a consume log (quota=0) on request/response
     failures, so users can see failure reasons in usage logs
   - Includes size, quality, count, and error message in log content

5. Improve channel test logging for image models
   - buildTestLogOther now includes test_request_body and
     test_response_body in the Other field for diagnostics
   - buildTestLogContent already records size/quality/count for images

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-21 02:31:49 +08:00
admin 0ecf51917b feat: add auth_gateway template for CSRF form-based login balance query
Docker Build / Build and Push Docker Image (push) Successful in 3m56s
2026-06-20 05:37:25 +08:00
admin 94cead8d69 fix: improve 404 error message for balance login when upstream API path not proxied
Docker Build / Build and Push Docker Image (push) Successful in 3m56s
2026-06-20 05:24:11 +08:00
admin 7640af2313 fix: show all balance config fields for preset templates, allow overriding URLs
Docker Build / Build and Push Docker Image (push) Successful in 3m53s
2026-06-20 05:03:37 +08:00
admin 2169588052 feat: support API Key auth for balance query when login credentials not configured 2026-06-20 04:59:16 +08:00
admin 791c125226 fix: strip /v1 prefix from base URL when building balance query URLs
Docker Build / Build and Push Docker Image (push) Successful in 3m56s
2026-06-20 04:51:50 +08:00
admin 427ef9f835 feat: add custom balance query config for new-api/sub2api upstream
Docker Build / Build and Push Docker Image (push) Successful in 3m53s
2026-06-20 04:42:24 +08:00
admin c8b3528b15 fix: image model test and playground 400 error
Docker Build / Build and Push Docker Image (push) Successful in 3m57s
2026-06-20 03:51:16 +08:00
admin 9fbbd6eca1 fix: image playground 503 error and model filtering by group
Docker Build / Build and Push Docker Image (push) Successful in 4m0s
2026-06-20 02:12:01 +08:00
admin fc4589e7c2 fix: image playground group selector and 503 error
Docker Build / Build and Push Docker Image (push) Successful in 3m57s
2026-06-20 01:26:31 +08:00
admin 90bc1b8757 fix: include per_size fields in snapshot signature and fix imageModelSetting dependency
Docker Build / Build and Push Docker Image (push) Successful in 4m1s
2026-06-19 22:45:19 +08:00
admin 277dc69f9d fix: correct per_size billing display and add group selector to image playground
Docker Build / Build and Push Docker Image (push) Successful in 3m58s
2026-06-19 22:28:14 +08:00
admin 00d6d5fb4d fix: show per_size prices in pricing summary and use user models API for image playground
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-19 21:40:46 +08:00
admin 681ed8acce fix: add image_model_setting to defaults, fix per_size billing surcharge, refactor nested ternaries
Docker Build / Build and Push Docker Image (push) Successful in 3m59s
2026-06-19 20:39:50 +08:00
admin 2293e1150c feat: add per-resolution pricing mode in model pricing editor and fix image model test endpoint
Docker Build / Build and Push Docker Image (push) Successful in 4m1s
2026-06-19 19:39:37 +08:00
admin 57900cb54b fix: regenerate bun.lock to resolve broken dependency resolution
Docker Build / Build and Push Docker Image (push) Successful in 3m55s
2026-06-19 18:58:17 +08:00
admin 737c621878 feat(image-billing): add per-resolution billing for image models and fix pricing API missing endpoint types
Docker Build / Build and Push Docker Image (push) Failing after 14s
2026-06-19 18:26:24 +08:00
admin aac1570071 merge: upstream QuantumNous/new-api main with conflict resolution 2026-06-19 15:39:22 +08:00
QuentinHsu 5b4839fa37 chore(web): add default frontend oxc tooling (#5585)
- add oxlint and oxfmt configuration for web/default quality checks

- replace ESLint and Prettier scripts with protected-header Oxc formatting

- update frontend workspace dependencies for oxlint and oxfmt
2026-06-19 14:58:53 +08:00
CaIon 0c806db996 refactor(theme): update color classes 2026-06-19 14:53:44 +08:00
admin ff6b03fc21 feat: expand ImageGenerationModels list to include more image model keywords (image-, sd-, flux, kolors, etc.)
Docker Build / Build and Push Docker Image (push) Successful in 3m39s
2026-06-19 14:34:14 +08:00
admin 9ccffbe7f7 fix(image-playground): use pricing API endpoint_types to filter image models instead of keyword matching
Docker Build / Build and Push Docker Image (push) Successful in 3m44s
2026-06-19 14:30:10 +08:00
CaIon 490395b2f8 feat(performance): enhanced metrics display 2026-06-19 14:27:16 +08:00