Spaces:
Runtime error
Runtime error
jjjjj
Browse files- my_tools.py +1 -1
my_tools.py
CHANGED
|
@@ -72,7 +72,7 @@ class GeminiLLM(LLM):
|
|
| 72 |
# Por defecto, llama_index.core.llms.LLM inicializa self.callback_manager = callback_manager or CallbackManager([])
|
| 73 |
# Si queremos el LlamaDebugHandler, podemos pasarlo o reconfigurarlo
|
| 74 |
if not self.callback_manager.handlers: # Si no hay manejadores, añadir el nuestro
|
| 75 |
-
|
| 76 |
|
| 77 |
|
| 78 |
@property
|
|
|
|
| 72 |
# Por defecto, llama_index.core.llms.LLM inicializa self.callback_manager = callback_manager or CallbackManager([])
|
| 73 |
# Si queremos el LlamaDebugHandler, podemos pasarlo o reconfigurarlo
|
| 74 |
if not self.callback_manager.handlers: # Si no hay manejadores, añadir el nuestro
|
| 75 |
+
self.callback_manager.add_handler(LlamaDebugHandler())
|
| 76 |
|
| 77 |
|
| 78 |
@property
|