Skip to content

Commit

Permalink
ai/live: Set the default model on the request if needed (#3313)
Browse files Browse the repository at this point in the history
Without it, the O does not have a model ID to initialize the job
  • Loading branch information
j0sh authored Dec 12, 2024
1 parent 183b8bc commit 75af747
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/ai_process.go
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,9 @@ func processAIRequest(ctx context.Context, params aiRequestParams, req interface
modelID = defaultLiveVideoToVideoModelID
if v.ModelId != nil && *v.ModelId != "" {
modelID = *v.ModelId
} else {
// set default model
v.ModelId = &modelID
}
submitFn = func(ctx context.Context, params aiRequestParams, sess *AISession) (interface{}, error) {
return submitLiveVideoToVideo(ctx, params, sess, v)
Expand Down

0 comments on commit 75af747

Please sign in to comment.