Skip to content

Commit 96e934e

Browse files
fix liveParams to check for nil
1 parent a9fb901 commit 96e934e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

server/ai_process.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1492,11 +1492,13 @@ func processAIRequest(ctx context.Context, params aiRequestParams, req interface
14921492
break
14931493
}
14941494
sessTries[sess.Transcoder()]++
1495-
if params.liveParams.orchestrator != "" && !strings.Contains(sess.Transcoder(), params.liveParams.orchestrator) {
1496-
// user requested a specific orchestrator, so ignore all the others
1497-
clog.Infof(ctx, "Skipping orchestrator=%s because user request specific orchestrator=%s", sess.Transcoder(), params.liveParams.orchestrator)
1498-
retryableSessions = append(retryableSessions, sess)
1499-
continue
1495+
if params.liveParams != nil {
1496+
if params.liveParams.orchestrator != "" && !strings.Contains(sess.Transcoder(), params.liveParams.orchestrator) {
1497+
// user requested a specific orchestrator, so ignore all the others
1498+
clog.Infof(ctx, "Skipping orchestrator=%s because user request specific orchestrator=%s", sess.Transcoder(), params.liveParams.orchestrator)
1499+
retryableSessions = append(retryableSessions, sess)
1500+
continue
1501+
}
15001502
}
15011503

15021504
resp, err = submitFn(ctx, params, sess)

0 commit comments

Comments
 (0)