Update agent.py
Browse files
agent.py
CHANGED
@@ -54,10 +54,9 @@ import sys
|
|
54 |
import weave
|
55 |
weave.init("gaia-llamaindex-agents")
|
56 |
from llama_index.core import set_global_handler
|
57 |
-
from llama_index.core.callbacks import WeaveCallbackHandler
|
58 |
|
59 |
# Set Weave as the global callback handler
|
60 |
-
set_global_handler(
|
61 |
|
62 |
def get_max_memory_config(max_memory_per_gpu):
|
63 |
"""Generate max_memory config for available GPUs"""
|
|
|
54 |
import weave
|
55 |
weave.init("gaia-llamaindex-agents")
|
56 |
from llama_index.core import set_global_handler
|
|
|
57 |
|
58 |
# Set Weave as the global callback handler
|
59 |
+
set_global_handler("weave")
|
60 |
|
61 |
def get_max_memory_config(max_memory_per_gpu):
|
62 |
"""Generate max_memory config for available GPUs"""
|