Skip to content

Commit

Permalink
Temporary hack to fix comfyui prompt (#3333)
Browse files Browse the repository at this point in the history
* Temporary hack to fix comfyui prompt

For stream manager streams the pipelines app is not currently wrapping the comfyui json in a 'prompt' field so we need to handle this for now

* fix
  • Loading branch information
mjh1 authored Dec 23, 2024
1 parent 0bfd28b commit 1dfe3fd
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 @@ -467,7 +467,11 @@ func (ls *LivepeerServer) StartLiveVideo() http.Handler {
}

if len(authResp.paramsMap) > 0 {
pipelineParams = authResp.paramsMap
if _, ok := authResp.paramsMap["prompt"]; !ok && pipeline == "comfyui" {
pipelineParams = map[string]interface{}{"prompt": authResp.paramsMap}
} else {
pipelineParams = authResp.paramsMap
}
}

if authResp.StreamID != "" {
Expand Down

0 comments on commit 1dfe3fd

Please sign in to comment.