New web interface, move llm engine to separate process
This commit is contained in:
@@ -23,7 +23,7 @@ class IterationLogger:
|
||||
def log_iteration(
|
||||
self,
|
||||
timestamp: datetime,
|
||||
context: str,
|
||||
context: ET,
|
||||
response: str,
|
||||
):
|
||||
"""
|
||||
@@ -41,8 +41,7 @@ class IterationLogger:
|
||||
root.set("system_prompt_hash", self._system_prompt_hash)
|
||||
root.set("action_schema_hash", self._action_schema_hash)
|
||||
|
||||
context_elem = ET.SubElement(root, "context")
|
||||
context_elem.text = context
|
||||
root.append(context)
|
||||
|
||||
response_elem = ET.SubElement(root, "response")
|
||||
response_elem.text = response
|
||||
|
||||
Reference in New Issue
Block a user