Coool2 commited on
Commit
a9b5090
·
verified ·
1 Parent(s): c065e59

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -2
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(WeaveCallbackHandler())
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"""