feat(video): 对齐 grok-imagine-video 接口并优化视频生成功能
- 将默认视频模型从 sora-2 更改为 grok-imagine-video - 新增分辨率选项包括 720p 和 480p,替换原有的质量选项 - 扩展视频尺寸选项,新增方形、宽屏、长图等预设尺寸 - 添加分辨率和尺寸手动输入功能,支持自定义宽高 - 更新视频生成 API 参数为 resolution_name、preset 和 input_reference[] - 支持最多 7 张参考图片上传 - 优化视频设置浮层定位,避免被工具栏遮挡 - 识别后端错误响应格式,改进视频生成失败处理逻辑
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ func AIVideoContent(w http.ResponseWriter, r *http.Request, id string) {
|
||||
func proxyAIGetRequest(w http.ResponseWriter, r *http.Request, path string) {
|
||||
modelName := r.URL.Query().Get("model")
|
||||
if strings.TrimSpace(modelName) == "" {
|
||||
modelName = "sora-2"
|
||||
modelName = "grok-imagine-video"
|
||||
}
|
||||
channel, err := service.SelectModelChannel(modelName)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user