[WIP] Fix review feedback on PR #1637 regarding video generation#1638
Closed
Copilot wants to merge 1 commit into
Closed
[WIP] Fix review feedback on PR #1637 regarding video generation#1638Copilot wants to merge 1 commit into
Copilot wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
spec.md,plan.md,tasks.md)gen-videocode and skip only no-longer-valid itemssettings.jsonfilesOriginal prompt
Please create a pull request for repository
ThinkInAIXYZ/deepchatbased on branchdevthat fixes the review feedback on PR #1637 (head branchgen-video), focused on the actionable and still-valid issues below.Context:
feat: implement OpenAI-compatible video generation features and settingsFixes to implement:
videoGenerationsession settingssrc/main/presenter/agentRuntimePresenter/index.tsbuildPersistedGenerationSettingsPatchandbuildPersistedGenerationSettingsReplacementsovideoGenerationis persisted the same wayimageGenerationis.src/main/presenter/llmProviderPresenter/aiSdk/runtime.tsfetchBinary()currently forwardsAuthorizationand providerdefaultHeadersto arbitrarytask.urlvalues.controller.signalanddispatcherbehavior.src/main/presenter/llmProviderPresenter/aiSdk/runtime.tsapiEndpointaligned for video-generation modelssrc/main/presenter/llmProviderPresenter/providers/aiSdkProvider.tsfetchNewApiModels(), ensure models classified as video generation also getapiEndpointset tovideo-generation(or corresponding enum), matchingtypeandendpointType.videoErrorwhen the video source changes or successfully loadssrc/renderer/src/components/message/MessageBlockVideo.vuesrc/renderer/src/components/message/MessageBlockVideo.vuesrc/renderer/src/components/message/MessageBlockVideo.vueVideoorRequest failed.isVideoBlockdetectionsrc/renderer/src/components/message/MessageItemAssistant.vueblock.contentin addition toblock.image_data.includes()matching.src/renderer/src/i18n/da-DK/settings.jsonsrc/renderer/src/i18n/fa-IR/settings.jsonsrc/renderer/src/i18n/fr-FR/settings.jsonsrc/renderer/src/i18n/he-IL/settings.jsonsrc/renderer/src/i18n/ja-JP/settings.jsonsrc/renderer/src/i18n/ko-KR/settings.jsonsrc/renderer/src/i18n/pt-BR/settings.jsonsrc/renderer/src/i18n/ru-RU/settings.jsontest/main/presenter/llmProviderPresenter/aiSdkRuntime.test.tsVIDEO_GENERATION_POLL_INTERVAL_MSwith fake timers or a stubbed delay so tests remain deterministic and fast.Optional / lower priority (implement if still valid and low-risk):
11. Tighten schema validation for video parameter strings in
src/shared/contracts/common.ts12. Remove duplicated hardcoded
doubao-seedance-prefix check insrc/shared/videoGenerationSettings.tsValidation expectations:
The following is the prior conversation context from the user's chat exploration (may be truncated):
User: 根据 反馈的 comments 梳理出优化点
Assistant: 可以,这次 comments 可以整理成 4 类优化点:必须先修、建议尽快修、体验/一致性优化、可选重构。
一、必须先修(建议优先处理)
这些是会导致功能错误、数据不一...
This pull request was created from Copilot chat.