Skip to content

Commit

Permalink
Fixing CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Rai220 committed Oct 8, 2024
1 parent a51313a commit f841ccd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 49 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def base_params(self) -> Dict:
class Config:
"""Configuration for this pydantic object."""

extra = Extra.forbid
extra = 'forbid'

@root_validator(pre=True)
def validate_environment(cls, values: Dict) -> Dict:
Expand Down
47 changes: 0 additions & 47 deletions libs/langchain/langchain/chains/combine_documents/conditional.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def _call(
get_chat_history = self.get_chat_history or _get_chat_history
chat_history_str = get_chat_history(inputs["chat_history"])

if chat_history_str and not self.disable_question_generator:
if chat_history_str:
callbacks = _run_manager.get_child()
new_question = self.question_generator.run(
question=question, chat_history=chat_history_str, callbacks=callbacks
Expand Down

0 comments on commit f841ccd

Please sign in to comment.