SIGN IN SIGN UP

fix: `LlamaIndex` callback handler should fail gracefully (#1606)

* Add test that induces an error while handling callbacks

* Add graceful_fallback decorator

* Wire up initial graceful fallbacks

* Fix fallback decorator type hinting

* Patch handler internals instead of the decorated handler itself

* Add documentation

* Improve logging

* Improve testing

* Add graceful fallback tests

* Fix import formatting

* Remove needless typevar definition

* Log tracebacks in `graceful_fallback` decorator

* Remove extra logging from callback handler

* Update llama_index callback handler tests
D
Dustin Ngo committed
a183cdc4588e99c35230d10f6204f8911365fbc8
Parent: 53335c2
Committed by GitHub <noreply@github.com> on 10/13/2023, 6:17:01 AM