feat(taxonomy): Redirect logs and artifacts to dedicated sub-folders
This commit is contained in:
3
gui_2.py
3
gui_2.py
@@ -1224,9 +1224,8 @@ class App:
|
||||
"""A dummy function that a custom_callback would execute for testing."""
|
||||
# Note: This file path is relative to where the test is run.
|
||||
# This is for testing purposes only.
|
||||
with open("temp_callback_output.txt", "w") as f:
|
||||
with open("tests/artifacts/temp_callback_output.txt", "w") as f:
|
||||
f.write(data)
|
||||
|
||||
def _recalculate_session_usage(self) -> None:
|
||||
usage = {"input_tokens": 0, "output_tokens": 0, "cache_read_input_tokens": 0, "cache_creation_input_tokens": 0, "total_tokens": 0, "last_latency": 0.0}
|
||||
for entry in ai_client.get_comms_log():
|
||||
|
||||
Reference in New Issue
Block a user