mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 13:23:15 +00:00
Do not use a message branch if no msg id provided to prompt tracer
This commit is contained in:
@@ -512,7 +512,8 @@ def commit_conversation_trace(
|
|||||||
msg_branch = f"m_{mid}" if mid else None
|
msg_branch = f"m_{mid}" if mid else None
|
||||||
if msg_branch and msg_branch not in repo.branches:
|
if msg_branch and msg_branch not in repo.branches:
|
||||||
repo.create_head(msg_branch)
|
repo.create_head(msg_branch)
|
||||||
repo.heads[msg_branch].checkout()
|
if msg_branch:
|
||||||
|
repo.heads[msg_branch].checkout()
|
||||||
|
|
||||||
# Include file with content to commit
|
# Include file with content to commit
|
||||||
files_to_commit = {"query": session_yaml, "response": response_yaml, "system_prompt": system_message_yaml}
|
files_to_commit = {"query": session_yaml, "response": response_yaml, "system_prompt": system_message_yaml}
|
||||||
|
|||||||
Reference in New Issue
Block a user