Skip to content

Commit

Permalink
Fix BaseSynthesizer LLM callback (#11404)
Browse files Browse the repository at this point in the history
  • Loading branch information
MusheghB authored Feb 26, 2024
1 parent 0b4692b commit be76419
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ def __init__(
) -> None:
"""Init params."""
self._llm = llm or llm_from_settings_or_context(Settings, service_context)

if callback_manager:
self._llm.callback_manager = callback_manager

self._callback_manager = (
callback_manager
or callback_manager_from_settings_or_context(Settings, service_context)
Expand Down

0 comments on commit be76419

Please sign in to comment.