Commit Graph

5327 Commits

Author SHA1 Message Date
Fat Person bea317ac7e Return error when model price/ratio unset
#3079
Change ModelPriceHelperPerCall to return (PriceData, error) and stop silently falling back to a default price. If a model price is not configured the helper now returns an error (unless the user has AcceptUnsetRatioModel enabled and a ratio exists). Propagate this error to callers: Midjourney handlers now return a MidjourneyResponse with Code 4 and the error message, and task submission returns a wrapped task error with HTTP 400. Also extract remix video_id in ResolveOriginTask for remix actions. This enforces explicit model price/ratio configuration and surfaces configuration issues to clients.
2026-03-02 19:09:48 +08:00
Seefs ad326beb10 Merge pull request #3066 from seefs001/fix/aws-header-override
Fix/aws header override
2026-03-02 18:54:56 +08:00
CaIon 4b61c54c41 fix: handle rate limits and improve error response parsing in video task updates 2026-03-02 17:11:57 +08:00
Seefs 8ae96be365 Merge pull request #3077 from seefs001/fix/aws-non-empty-text
fix: aws text content blocks must be non-empty
2026-03-02 16:33:03 +08:00
Seefs 2df604bbad fix: default empty input_json_delta arguments to {} for tool call parsing 2026-03-02 15:51:55 +08:00
Seefs da11617776 fix: preserve tool_use on malformed tool arguments to keep tool_result pairing valid 2026-03-02 15:41:03 +08:00
Seefs 4d6f9a94a3 fix: aws text content blocks must be non-empty 2026-03-02 15:31:37 +08:00
CaIon c1cb03456c feat: add cc-switch integration and modal for token management
- Introduced a new CCSwitchModal component for managing CCSwitch configurations.
- Updated the TokensPage to include functionality for opening the CCSwitch modal.
- Enhanced the useTokensData hook to handle CCSwitch URLs and trigger the modal.
- Modified chat settings to include a new "CC Switch" entry.
- Updated sidebar logic to skip certain links based on the new configuration.
2026-03-01 23:23:20 +08:00
Calcium-Ion 1583463436 Merge pull request #3069 from seefs001/fix/gemini-field-ignore
fix: preserve explicit zero values in native relay requests
2026-03-01 17:56:20 +08:00
Seefs 2cf3c1836c fix: preserve explicit zero values in native relay requests 2026-03-01 15:47:03 +08:00
Seefs 530e43b21c Merge pull request #3060 from QuantumNous/dependabot/npm_and_yarn/electron/minimatch-3.1.5
chore(deps-dev): bump minimatch from 3.1.2 to 3.1.5 in /electron
2026-03-01 14:50:03 +08:00
Seefs 4f4a04ab2c Merge pull request #2720 from QuantumNous/dependabot/npm_and_yarn/electron/lodash-4.17.23
build(deps-dev): bump lodash from 4.17.21 to 4.17.23 in /electron
2026-03-01 14:49:41 +08:00
dependabot[bot] 0015763021 chore(deps-dev): bump minimatch from 3.1.2 to 3.1.5 in /electron
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.1.2 to 3.1.5.
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.1.2...v3.1.5)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-version: 3.1.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-01 06:49:28 +00:00
Seefs 7ad54b1fa9 Merge pull request #2964 from QuantumNous/dependabot/npm_and_yarn/electron/multi-227d46b8ec
chore(deps): bump tar and electron-builder in /electron
2026-03-01 14:48:17 +08:00
Calcium-Ion 889bdfcac1 Merge pull request #3061 from QuantumNous/dependabot/npm_and_yarn/web/axios-1.13.5
chore(deps): bump axios from 1.12.0 to 1.13.5 in /web
2026-03-01 14:47:19 +08:00
CaIon e22f59e449 feat(gemini): update request structures for Veo predictLongRunning
- Refactored the request URL and body construction methods to align with the Veo predictLongRunning endpoint.
- Introduced new data structures for Veo instances and parameters, replacing the previous Gemini video generation configurations.
- Updated the Vertex adaptor to utilize the new Veo request payload format.
2026-02-28 18:42:54 +08:00
dependabot[bot] 53a91a5799 chore(deps): bump axios from 1.12.0 to 1.13.5 in /web
Bumps [axios](https://github.com/axios/axios) from 1.12.0 to 1.13.5.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.12.0...v1.13.5)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.13.5
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-02-28 10:22:03 +00:00
Seefs 8103b4b1a7 Merge pull request #3009 from seefs001/feature/improve-param-override
feat: improve channel override ui/ux
2026-02-28 18:19:40 +08:00
Calcium-Ion 30061f3c2c Merge pull request #3059 from QuantumNous/feat/veo
feat(gemini): implement video generation configuration
2026-02-28 17:55:24 +08:00
Calcium-Ion 9fea78d124 Merge pull request #3012 from seefs001/feature/minimax_reasoning_split
feat: minimax reasoning_split
2026-02-28 17:55:00 +08:00
Calcium-Ion c4973e7fa3 Merge pull request #3029 from seefs001/feature/nanobanana2
feat: add image model to supported image presets
2026-02-28 17:54:39 +08:00
Calcium-Ion ebe65b902f Merge pull request #3052 from seefs001/fix/redirect-payment-url
fix: redirect subscription payment return to user-accessible page
2026-02-28 17:54:21 +08:00
CaIon 32d9ae1f83 feat(gemini): implement video generation configuration and billing estimation
- Added Gemini video generation configuration structures and payloads.
- Introduced functions for parsing and resolving video duration and resolution from metadata.
- Enhanced the Vertex adaptor to support Gemini video generation requests and billing estimation based on duration and resolution.
- Updated model pricing settings for new Gemini video models.
2026-02-28 17:37:08 +08:00
Seefs 7f4302837c fix: redirect subscription payment return to user-accessible page 2026-02-28 15:14:08 +08:00
Calcium-Ion af5cff20d8 Merge pull request #3049 from seefs001/fix/build-in-bindings
fix: show built-in user bindings from user detail API in admin modal
2026-02-28 14:47:33 +08:00
Seefs 9fd53d804e fix: show built-in user bindings from user detail API in admin modal 2026-02-28 01:03:24 +08:00
Seefs a53e139325 feat: support header token-map rewrite and improve set_header editor UX 2026-02-27 20:01:51 +08:00
Seefs 054370abdc feat: support token-map rewrite for comma-separated headers and add bedrock anthropic-beta preset 2026-02-27 19:47:32 +08:00
Calcium-Ion a58c98c4f6 Merge pull request #3042 from seefs001/fix/video-vertex-fetch
fix: vertex ai video proxy and task polling improvements
2026-02-27 18:58:00 +08:00
Seefs a33a3eae87 fix: vertex ai video proxy and task polling improvements 2026-02-27 18:47:47 +08:00
Calcium-Ion e56205613b Merge pull request #3038 from seefs001/fix/video-vertex-fetch
fix: align Vertex content fetch flow with Gemini and handle base64
2026-02-27 17:17:05 +08:00
Seefs b16eb88133 fix: support vertex multi-key task fetch in content proxy 2026-02-27 17:07:10 +08:00
Seefs 7d382fff6b fix: align Vertex content fetch flow with Gemini and handle base64 payloads 2026-02-27 16:49:37 +08:00
Seefs ff0ecef37d feat: add gemini-3-pro-image-preview/gemini-2.5-flash-image/gemini-3.1-flash-image-preview to supported image presets 2026-02-27 00:44:17 +08:00
Seefs a955d4102d refactor(override): simplify header overrides to a lowercase single map 2026-02-25 17:24:18 +08:00
Seefs e8d9997d48 feat: minimax reasoning_split 2026-02-25 16:15:35 +08:00
Seefs 3034fb8899 fix: merge runtime and channel header overrides, skip missing source headers 2026-02-25 16:12:34 +08:00
Seefs 58fcd9cbca fix pass_headers 2026-02-25 15:39:49 +08:00
Seefs e027f38244 feat:add CLI param-override templates with visual editor and apply on first rule match 2026-02-25 15:08:23 +08:00
CaIon 986aa02bf2 chore: update .gitattributes 2026-02-25 14:55:33 +08:00
Seefs 0f09dbda2b Merge branch 'upstream-main' into feature/improve-param-override
# Conflicts:
#	relay/channel/api_request_test.go
#	relay/common/override_test.go
#	web/src/components/table/channels/modals/EditChannelModal.jsx
2026-02-25 13:39:54 +08:00
CaIon 8f14687d61 fix: improve multipart form data handling by detecting content type. fix #3007 2026-02-25 12:51:46 +08:00
CaIon 094ac54609 feat(middleware): add RouteTag middleware for enhanced logging and routing
- Introduced RouteTag middleware to set route tags for different API endpoints.
- Updated logger to include route tags in log output.
- Applied RouteTag middleware across various routers including API, dashboard, relay, video, and web routers for consistent logging.
2026-02-25 00:11:24 +08:00
CaIon b85192590b fix: handle nil setting in user retrieval from database 2026-02-24 23:46:46 +08:00
Calcium-Ion a36d0f90bc Merge pull request #3002 from RedwindA/feat/zeroMatchHint
feat(web): add custom-model create hint and i18n translations
2026-02-24 22:05:05 +08:00
RedwindA 144fe67705 feat(web): add custom-model create hint and i18n translations 2026-02-24 21:44:21 +08:00
CaIon 176f764d2c feat: add comprehensive tests for StreamScannerHandler functionality
- Introduced a new test file for StreamScannerHandler, covering various scenarios including nil inputs, empty bodies, chunk processing, order preservation, and handler failures.
- Enhanced error handling and data processing logic in StreamScannerHandler to improve robustness and performance.
2026-02-24 17:36:08 +08:00
Calcium-Ion 89c0b7902b Merge pull request #2998 from seefs001/fix/pr-2900
Fix/pr 2900
2026-02-24 13:35:05 +08:00
Seefs 262ece0d71 fix: check oauthUser.Username length 2026-02-24 13:26:19 +08:00
Calcium-Ion 6b19c845e2 Merge pull request #2993 from seefs001/feature/user-oauth-detail
feat: move user bindings to dedicated management modal
2026-02-24 13:01:10 +08:00