Skip to content

Commit 3d91a85

Browse files
fix: emit file_entity_count even when pseudonymized_prompt empty
1 parent 22dc78a commit 3d91a85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/open_webui/routers/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,7 @@ async def _stream_with_pseudo_prompt():
12391239
except Exception:
12401240
pass
12411241
yield chunk
1242-
if pseudo_prompt:
1242+
if pseudo_prompt or file_entity_count:
12431243
synthetic = f'data: {json.dumps({"pseudonymized_prompt": pseudo_prompt, "file_entity_count": file_entity_count})}\n\n'
12441244
yield synthetic.encode('utf-8')
12451245

0 commit comments

Comments
 (0)