Different persistence for chat:completion event in Pipe and Action?
#31612
|
According to the documentation Events / Open WebUI, |
Replies: 2 comments
|
Your observation matches the v0.11.4 implementation, but it is not The emitter's database-write branches cover The Action path differs on the client:
That final whole-chat save is why the Action mutation survives a refresh. Pipe completion uses a separate backend persistence lifecycle, which explains the apparent inconsistency. I cannot determine from the code whether the asymmetry is intentional, but there does not appear to be a public transient-Action event flag. Supporting this use case would require either skipping the post-Action history save for explicitly transient output or filtering/reverting those transient fields before |
|
Your answer seems to be correct. Thanks! |
Your observation matches the v0.11.4 implementation, but it is not
chat:completionbeing persisted directly byget_event_emitter.The emitter's database-write branches cover
status,message,replace,embeds,files, and source/citation events, but notchat:completion.The Action path differs on the client:
chatCompletionEventHandlerapplies the event'soutputor content to the in-memory message.chatActionHandlersaves the entire updated history withupdateChatById.That final whole-chat save is why the Action mutation survives a refresh. Pipe completion uses a separate backend persistence lifecycle, which explains the apparent inconsistency.
I cannot d…