Skip to content

Commit

Permalink
fix seg fault on log line if parameter not included in request
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-video committed Sep 20, 2024
1 parent de09a42 commit 6ff4ba4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/ai_mediaserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,11 @@ func (ls *LivepeerServer) LlmGenerate() http.Handler {
return
}

clog.V(common.VERBOSE).Infof(ctx, "Received LlmGenerate request prompt=%v model_id=%v stream=%v", req.Prompt, *req.ModelId, *req.Stream)
streamResponse := false
if *req.Stream {
streamResponse = *req.Stream
}
clog.V(common.VERBOSE).Infof(ctx, "Received LlmGenerate request prompt=%v model_id=%v stream=%v", req.Prompt, *req.ModelId, streamResponse)

params := aiRequestParams{
node: ls.LivepeerNode,
Expand Down

0 comments on commit 6ff4ba4

Please sign in to comment.