feat: add sora video fetch task

This commit is contained in:
feitianbubu
2025-10-10 15:25:29 +08:00
parent 3c57cfbf71
commit 2479da4986
3 changed files with 13 additions and 8 deletions

View File

@@ -184,6 +184,9 @@ func getModelRequest(c *gin.Context) (*ModelRequest, bool, error) {
modelRequest.Model = values[0]
}
}
} else if c.Request.Method == http.MethodGet {
relayMode = relayconstant.RelayModeVideoFetchByID
shouldSelectChannel = false
}
c.Set("relay_mode", relayMode)
} else if strings.Contains(c.Request.URL.Path, "/v1/video/generations") {