-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat: Add complete Doubao API support (Seedance + Seedream) #677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
inoribea
wants to merge
21
commits into
Dooy:main
Choose a base branch
from
inoribea:feat/seedance-video-generation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
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
|
@inoribea is attempting to deploy a commit to the dooy's projects Team on Vercel. A member of the Team first needs to authorize it. |
- Add Seedance API client (src/api/seedance.ts) - Add Seedream API client (src/api/seedream.ts) - Add Seedance components (seedanceInput.vue, seedancePage.vue) - Add Seedream component (aiSeedream.vue) - Add /seedance route - Integrate Seedream into openapi (handleSeedream, handleSeedreamEdit) - Add video generation templates (text-to-video, image-to-video, first/last frame) - Add comprehensive i18n support (zh-CN, en-US) - Add DOUBAO environment variables (DOUBAO_SERVER, DOUBAO_KEY) - Add DOUBAO configuration with fallback to OPENAI_API settings - Update README with complete Doubao documentation Seedance Features: - Text-to-video generation - Image-to-video generation (first frame) - First & last frame video generation - Configurable resolution (720p/1080p) - Configurable aspect ratio (16:9/9:16/1:1) - Configurable duration (5s/8s/10s/12s) - FPS selection (24/30) - Camera fixed mode - Watermark toggle - Seed customization Seedream Features: - Text-to-image generation - Image-to-image editing - Multi-image fusion (up to 14 reference images) - Group image generation (multiple coherent images) - Image editing with mask support - Configurable resolution (1K/2K/4K) - Response format selection (URL/Base64) - Watermark control - Prompt optimization - Model list caching (10 minutes TTL)
a67a0d8 to
b1bd699
Compare
- 修复 nano-banana-2 模型首次生成时 aspect_ratio 无效的问题 - 删除与 aspect_ratio 冲突的 size 参数 - 优化模型切换时 aspect_ratio 的重置逻辑 - 修改默认绘图类型从 midjourney 改为 general - 优化环境变量初始化逻辑,避免覆盖用户配置 - 添加环境变量调试日志
- 后端新增 USER_AVATAR 和 SITE_TITLE 环境变量读取 - 前端支持动态设置网站标题和用户默认头像 - 更新 README.md 添加配置说明 - 更新 .env.example 示例配置
- 添加 vite.config.ts 中的 HTML 转换钩子,在构建时替换标题 - Vercel 部署需使用 VITE_SITE_TITLE 环境变量 - Docker 部署使用 SITE_TITLE 环境变量 - 添加详细的调试日志用于排查配置问题 - 更新 README 说明不同部署方式的配置差异
- 修改 defaultSetting() 使用环境变量的头像作为默认值 - 优化头像应用逻辑,只在首次访问时应用环境变量 - 保持用户在前端设置中的自定义头像选择 - 检查 localStorage 判断是否为首次访问
- 后端添加 USER_NAME 环境变量读取和返回 - 前端支持动态设置用户默认名称 - 只在首次访问时应用环境变量名称 - 保持用户在前端设置中的自定义名称选择 - 更新 README 和 .env.example 配置文档
- 更新 api/session.js 添加所有新环境变量的读取 - 添加 USER_AVATAR, USER_NAME, SITE_TITLE 支持 - 添加 BACKGROUND_IMAGE, OPENAI_API_BASE_URL, MJ_SERVER 支持 - Vercel 部署使用 api/session.js 而非 service/src/index.ts
- 修正前端主题处理逻辑,正确识别 auto、light、dark 三种模式 - SYS_THEME=auto 时保持 auto 状态,由系统根据 prefers-color-scheme 自动判断 - SYS_THEME=light 或 dark 时强制使用指定主题 - 修复之前错误地将 auto 强制设置为 dark 的问题
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.
Summary
This PR adds complete support for Doubao (豆包) API, including Seedance (video generation) and Seedream (image generation) capabilities.
Changes
Core API Clients
src/api/seedance.tswith full video generation API integrationsrc/api/seedream.tswith full image generation API integrationComponents
src/views/video/seedanceInput.vue- User input componentsrc/views/video/seedancePage.vue- Main page componentsrc/views/mj/aiSeedream.vue- Complete UI component with all modesRouting & Integration
/seedanceroute for Seedance featuresrc/api/openapi.ts:handleSeedream()- Process text/multi-image generationhandleSeedreamEdit()- Process image editing with maskgpt.seedreamandgpt.seedream.editTemplates & Configuration
doubao-seedance-1-0-pro-250528- Pro version with extended optionsdoubao-seedance-1-0-lite-i2v-250428- Lite version for image-to-videoDOUBAO_SERVER- Doubao API endpointDOUBAO_KEY- Doubao API keyOPENAI_API_BASE_URLandOPENAI_API_KEYi18n & Documentation
Seedance Features
Seedream Features